- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 945 for IOException (0.07 sec)
-
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
// Both transports fail SmbTransportImpl trans1 = mock(SmbTransportImpl.class); SmbTransportImpl trans2 = mock(SmbTransportImpl.class); IOException firstException = new IOException("First failure"); IOException secondException = new IOException("Second failure"); when(trans1.unwrap(SmbTransportImpl.class)).thenReturn(trans1); when(trans1.ensureConnected()).thenThrow(firstException);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/main/java/jcifs/util/transport/Transport.java
* @param len the number of bytes to read * @return number of bytes read * @throws IOException if an I/O error occurs */ public static int readn(final InputStream in, final byte[] b, final int off, final int len) throws IOException { int i = 0, n = -5; if (off + len > b.length) { throw new IOException("Buffer too short, bufsize " + b.length + " read " + len); } while (i < len) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 27.8K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
private NtlmHttpURLConnection ntlmConnection; /** * Sets up the mocks and the NtlmHttpURLConnection instance before each test. * @throws IOException */ @BeforeEach void setUp() throws IOException { // Create a real URL instead of mocking to avoid protocol issues mockUrl = new URL("http://test.example.com/path");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket(); byte[] buffer = new byte[6]; // Assert that an IOException is thrown with the expected message. IOException thrown = assertThrows(IOException.class, () -> { packet.readTrailerWireFormat(mockInputStream, buffer, 0); });Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/MultiReader.java
this.it = readers; advance(); } /** Closes the current reader and opens the next one, if any. */ private void advance() throws IOException { close(); if (it.hasNext()) { current = it.next().openStream(); } } @Override public int read(char[] cbuf, int off, int len) throws IOException { checkNotNull(cbuf);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:37:28 UTC 2025 - 2.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 9.6K bytes - Viewed (0) -
src/main/java/jcifs/pac/ASN1Util.java
* @return coded bytes of the tagged object * @throws IOException if reading fails or tag mismatch */ public static byte[] readUnparsedTagged(final int expectTag, final int limit, final ASN1InputStream in) throws IOException { final int ftag = in.read(); final int tag = readTagNumber(in, ftag); if (tag != expectTag) { throw new IOException("Unexpected tag " + tag); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.mockStatic; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.security.auth.kerberos.KerberosKey; import javax.security.auth.kerberos.KerberosPrincipal; import org.junit.jupiter.api.BeforeEach;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
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 Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Apr 03 13:48:41 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoTokenTest.java
IOException ex = assertThrows(IOException.class, () -> t.parse(null), "parse should throw IOException on null"); assertTrue(ex.getMessage().toLowerCase().contains("null")); } @Test @DisplayName("toByteArray returns empty when no mechanismToken") void toByteArrayWhenNull() { TestSpnegoToken t = new TestSpnegoToken();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0)