Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 2,770 for throwIt (0.08 sec)

  1. guava/src/com/google/common/io/Files.java

       *
       * @param file the file to read from
       * @return a byte array containing all the bytes from file
       * @throws IllegalArgumentException if the file is bigger than the largest possible byte array
       *     (2^31 - 1)
       * @throws IOException if an I/O error occurs
       */
      public static byte[] toByteArray(File file) throws IOException {
        return asByteSource(file).read();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeConnection.java

            }
    
            throw new CIFSException("Loop in DFS referrals");
        }
    
        /**
         * @param loc
         * @return tree handle
         * @throws SmbException
         */
        public SmbTreeHandleImpl connectWrapException(final SmbResourceLocatorImpl loc) throws SmbException {
            try {
                return connect(loc);
            } catch (final SmbException se) {
                throw se;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/ASN1UtilTest.java

        }
    
        @Test
        void testReadTagNumber_HighTag() throws IOException {
            // High tag number (31)
            InputStream s = new ByteArrayInputStream(new byte[] { 0x1F });
            int tagNo = ASN1Util.readTagNumber(s, 0x1F);
            assertEquals(31, tagNo);
        }
    
        @Test
        void testReadTagNumber_MultiByte() throws IOException {
            // Multi-byte tag (e.g., 80)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

        @CanIgnoreReturnValue
        @Override
        @ParametricNullness
        public final V get() throws InterruptedException, ExecutionException {
          return super.get();
        }
    
        @CanIgnoreReturnValue
        @Override
        @ParametricNullness
        public final V get(long timeout, TimeUnit unit)
            throws InterruptedException, ExecutionException, TimeoutException {
          return super.get(timeout, unit);
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            if (read(this.tmp, 0, 8) < 0) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_uint64be(this.tmp, 0);
        }
    
        @Override
        public final float readFloat() throws SmbException {
            if (read(this.tmp, 0, 4) < 0) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_floatbe(this.tmp, 0);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbResourceTest.java

            void testDelete() throws CIFSException {
                // When/Then
                assertDoesNotThrow(() -> mockResource.delete(), "Delete operation should not throw exception");
                verify(mockResource).delete();
            }
    
            @Test
            @DisplayName("copy operation should work correctly")
            void testCopyTo() throws CIFSException {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java

            // TCP fallback doesn't support real RDMA read
            throw new UnsupportedOperationException("RDMA read not supported by TCP fallback");
        }
    
        @Override
        public void rdmaWrite(RdmaMemoryRegion localRegion, long remoteAddress, int remoteKey, int length) throws IOException {
            // TCP fallback doesn't support real RDMA write
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          monitor.leave();
        }
      }
    
      /**
       * @throws UnsupportedOperationException {@inheritDoc}
       * @throws ClassCastException {@inheritDoc}
       * @throws NullPointerException {@inheritDoc}
       * @throws IllegalArgumentException {@inheritDoc}
       */
      @CanIgnoreReturnValue
      @Override
      public int drainTo(Collection<? super E> c) {
        if (c == null) throw new NullPointerException();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        void testGetByNameWithLocalhost() throws UnknownHostException {
            // When
            Address address = nameServiceClient.getByName("localhost");
    
            // Then
            assertNotNull(address, "Should return address for localhost");
        }
    
        @Test
        @DisplayName("Should handle IP address in getByName")
        void testGetByNameWithIPAddress() throws UnknownHostException {
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/UnmodifiableListIterator.java

      /**
       * Guaranteed to throw an exception and leave the underlying data unmodified.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final void add(@ParametricNullness E e) {
        throw new UnsupportedOperationException();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top