Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 731 - 740 of 3,522 for throwIf (0.2 seconds)

  1. guava/src/com/google/common/collect/RangeSet.java

      boolean isEmpty();
    
      /**
       * Returns the minimal range which {@linkplain Range#encloses(Range) encloses} all ranges in this
       * range set.
       *
       * @throws NoSuchElementException if this range set is {@linkplain #isEmpty() empty}
       */
      Range<C> span();
    
      // Views
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

            assertNull(context.getSigningKey()); // Signing key should not be generated
        }
    
        @Test
        void testInitSecContext_invalidState() throws SmbException {
            // Test that calling initSecContext in an invalid state throws an exception
            when(mockAuth.getDomain()).thenReturn(domain);
            when(mockAuth.getUsername()).thenReturn(username);
            when(mockAuth.getPassword()).thenReturn(password);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  3. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new RequestBodyCompression().run();
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 04 17:43:43 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImpl.java

         * @param len the length of data to decode
         * @throws IOException if an I/O error occurs during decoding
         */
        public FileNotifyInformationImpl(final byte[] buffer, final int bufferIndex, final int len) throws IOException {
            decode(buffer, bufferIndex, len);
        }
    
        @Override
        public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException {
            if (len == 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

        public void testGetContentAsBytes_EmptyData() throws IOException {
            // ## Arrange ##
            ContentCache cache = new ContentCache(new byte[0]);
    
            // ## Act ##
            byte[] result = cache.getContentAsBytes();
    
            // ## Assert ##
            assertEquals(0, result.length);
        }
    
        @Test
        public void testGetContentAsBytes_EmptyFile() throws IOException {
            // ## Arrange ##
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbFileOutputStream.java

         * Ensures that the file descriptor is openend
         *
         * @throws CIFSException if an error occurs opening the file
         */
        public void open() throws CIFSException {
            try (SmbFileHandleImpl fh = ensureOpen()) {}
        }
    
        /**
         * Closes this output stream and releases any system resources associated
         * with it.
         *
         * @throws IOException
         *             if a network error occurs
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

                  .build())
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/robots.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Dec 08 21:30:01 GMT 2019
    - 1.7K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/util/Encdec.java

         * @param dlim the maximum index in the destination array
         * @return the number of bytes written
         * @throws IOException if an encoding error occurs
         */
        public static int enc_utf8(final String str, final byte[] dst, int di, final int dlim) throws IOException {
            final int start = di;
            int ch;
            final int strlen = str.length();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

         *
         * @param sessionId unique identifier for the process session
         * @param command the command to send to the process
         * @throws JobNotFoundException if no process is found for the given session ID
         * @throws JobProcessingException if there's an error sending the command
         */
        public void sendCommand(final String sessionId, final String command) {
            final Process process;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 06:54:47 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

        public ProjectBuilderResult build(ProjectBuilderRequest request)
                throws ProjectBuilderException, IllegalArgumentException {
            InternalSession session = InternalSession.from(request.getSession());
            return session.request(request, this::doBuild);
        }
    
        protected ProjectBuilderResult doBuild(ProjectBuilderRequest request)
                throws ProjectBuilderException, IllegalArgumentException {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Sep 13 09:44:11 GMT 2025
    - 8.8K bytes
    - Click Count (0)
Back to Top