Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for getShort (0.88 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                assertEquals(4, bytesEncoded);
    
                ByteBuffer bb = ByteBuffer.wrap(dst).order(ByteOrder.LITTLE_ENDIAN);
                assertEquals(maxReferralLevel, bb.getShort());
                assertEquals(0, bb.getShort()); // null terminator
            }
    
            @ParameterizedTest
            @DisplayName("Should encode various referral levels correctly")
            @ValueSource(ints = { 0, 1, 255, 256, 32767, 65535 })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Shorts.java

      }
    
      /**
       * Returns the {@code short} value whose big-endian representation is stored in the first 2 bytes
       * of {@code bytes}; equivalent to {@code ByteBuffer.wrap(bytes).getShort()}. For example, the
       * input byte array {@code {0x54, 0x32}} would yield the {@code short} value {@code 0x5432}.
       *
       * <p>Arguably, it's preferable to use {@link java.nio.ByteBuffer}; that library exposes much more
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Shorts.java

      }
    
      /**
       * Returns the {@code short} value whose big-endian representation is stored in the first 2 bytes
       * of {@code bytes}; equivalent to {@code ByteBuffer.wrap(bytes).getShort()}. For example, the
       * input byte array {@code {0x54, 0x32}} would yield the {@code short} value {@code 0x5432}.
       *
       * <p>Arguably, it's preferable to use {@link java.nio.ByteBuffer}; that library exposes much more
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertEquals("::1", HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost());
        // Non-bracketed non-IPv6 works fine.
        assertEquals("x", HostAndPort.fromString("x").requireBracketsForIPv6().getHost());
        assertEquals("x", HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost());
    
        // Non-bracketed IPv6 fails.
        assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/FessBoot.java

            final String tempPath = System.getProperty(FESS_TEMP_PATH);
            if (tempPath != null) {
                System.setProperty(JAVA_IO_TMPDIR, tempPath);
            }
    
            final TomcatBoot tomcatBoot = new FessBoot(getPort(), getContextPath()) //
                    .useTldDetect(); // for JSP
            final String varPath = System.getProperty(FESS_VAR_PATH);
            if (varPath != null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getPort()
         */
        @Override
        public int getPort() {
            return this.url.getPort();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getURL()
         */
        @Override
        public URL getURL() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                    int hash = (proxy.getUserName() + proxy.getPassword()).hashCode();
                    buffer.append(hash).append('@');
                }
                buffer.append(proxy.getHost()).append(':').append(proxy.getPort()).append('>');
            }
    
            // consider the username&password because a repo manager might block artifacts depending on authorization
            Authentication auth = repository.getAuthentication();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Apr 22 22:13:51 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                            }
                        }
    
                        Proxy p = new Proxy();
                        p.setHost(proxy.getHost());
                        p.setProtocol(proxy.getProtocol());
                        p.setPort(proxy.getPort());
                        p.setNonProxyHosts(proxy.getNonProxyHosts());
                        p.setUserName(proxy.getUsername());
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 31.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/PathValidator.java

            }
    
            try {
                URL url = new URL(null, smbUrl, new jcifs.smb.Handler());
    
                // Validate host
                String host = url.getHost();
                if (host == null || host.isEmpty()) {
                    throw new SmbException("SMB URL missing host");
                }
    
                // Validate host format
                if (!isValidHost(host)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/opensearch/config/exentity/FileConfig.java

                    smbAuth.setDomain(domain == null ? StringUtil.EMPTY : domain);
                    smbAuth.setServer(fileAuth.getHostname());
                    smbAuth.setPort(fileAuth.getPort() == null ? -1 : fileAuth.getPort());
                    smbAuth.setUsername(fileAuth.getUsername());
                    smbAuth.setPassword(fileAuth.getPassword());
                    smbAuthList.add(smbAuth);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Apr 03 09:24:53 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top