Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,870 for throws (0.05 sec)

  1. src/main/java/jcifs/pac/PacDataInputStream.java

         * @throws IOException if an I/O error occurs
         */
        public short readShort() throws IOException {
            align(2);
            return Short.reverseBytes(this.dis.readShort());
        }
    
        /**
         * Reads a 32-bit integer value with proper alignment and byte order.
         * @return the integer value in little-endian format
         * @throws IOException if an I/O error occurs
         */
        public int readInt() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacSignatureTest.java

            baos.write(buffer.array(), 0, 4);
        }
    
        /**
         * Test constructor with KERB_CHECKSUM_HMAC_MD5 type.
         *
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if the PAC is malformed
         */
        @Test
        void testConstructorKerbChecksumHmacMd5() throws IOException, PACDecodingException {
            // Prepare data
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java

        }
    
        @Override
        public String readLine() throws IOException {
            try {
                return prompter.prompt(null);
            } catch (org.apache.maven.api.services.PrompterException e) {
                throw new IOException("Unable to prompt", e);
            }
        }
    
        @Override
        public String readPassword() throws IOException {
            try {
                return prompter.promptForPassword(null);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:48:41 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        // make sure that no exception is thrown if 'swallowException' is true
        // when the mock does throw an exception.
        setupCloseable(true);
        doClose(mockCloseable, true);
      }
    
      public void testClose_closeableWithThrownException() throws IOException {
        // make sure that the exception is thrown if 'swallowException' is false
        // when the mock does throw an exception.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/io/CloseableUtilTest.java

    public class CloseableUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testClose() throws Exception {
            final NotifyOutputStream out = new NotifyOutputStream();
            CloseableUtil.close(out);
            assertThat(out.getNotify(), is("closed"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCloseNull() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

        void ensureDFSResolved_throws() throws Exception {
            // Arrange: configure the mock to throw
            doThrow(new CIFSException("DFS resolution failed")).when(handle).ensureDFSResolved();
    
            // Act + Assert: exception is propagated with message
            CIFSException ex = assertThrows(CIFSException.class, () -> handle.ensureDFSResolved());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/transport/TransportTest.java

            protected long makeKey(Request request) throws IOException {
                return nextKey++;
            }
    
            @Override
            protected Long peekKey() throws IOException {
                if (recvException != null) {
                    throw recvException;
                }
                return peekedKey;
            }
    
            @Override
            protected void doSend(Request request) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

            @Override
            public void encode(NdrBuffer dst) throws NdrException {
                if (throwOnEncode) {
                    throw new NdrException("Failed to encode");
                }
                // Simulate some encoding activity on the buffer
                dst.enc_ndr_long(123);
            }
    
            @Override
            public void decode(NdrBuffer src) throws NdrException {
                if (throwOnDecode) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

            this.bytesReceived += byteCount
          } catch (e: IOException) {
            throw complete(e)!!
          }
        }
    
        @Throws(IOException::class)
        override fun flush() {
          try {
            super.flush()
          } catch (e: IOException) {
            throw complete(e)!!
          }
        }
    
        @Throws(IOException::class)
        override fun close() {
          if (closed) return
          closed = true
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NbtSocket.java

                close();
                throw new NbtException(NbtException.ERR_SSN_SRVC, errorCode);
            case -1:
                throw new NbtException(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED);
            default:
                close();
                throw new NbtException(NbtException.ERR_SSN_SRVC, 0);
            }
        }
    
        @Override
        public void close() throws IOException {
            if (LogStream.level > 3) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top