- Sort Score
- Num 10 results
- Language All
Results 171 - 180 of 1,053 for IOException (0.09 seconds)
-
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/SettingsWriter.java
* @param settings The settings to serialize, must not be {@code null}. * @throws IOException If the settings could not be serialized. */ void write(File output, Map<String, Object> options, Settings settings) throws IOException; /** * Writes the supplied settings to the specified character writer. The writer will be automatically closed beforeCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestByteSink.java
} @Override public OutputStream openStream() throws IOException { outputStreamOpened = true; bytes.reset(); // truncate return new Out(); } private final class Out extends TestOutputStream { Out() throws IOException { super(bytes, options); } @Override public void close() throws IOException { outputStreamClosed = true; super.close(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 1.9K bytes - Click Count (0) -
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 19.2K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java
* @return A byte array representing the ticket * @throws IOException on encoding error */ private byte[] createTestTicketBytes(Number version, String realm, String principalName, int encType, byte[] encryptedData, Integer unknownTag) throws IOException { ASN1EncodableVector v = new ASN1EncodableVector();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSinkTest.java
} public void testWrite_bytes() throws IOException { assertArrayEquals(new byte[0], sink.getBytes()); sink.write(bytes); assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed()); assertArrayEquals(bytes, sink.getBytes()); } public void testWriteFrom_inputStream() throws IOException { ByteArrayInputStream in = new ByteArrayInputStream(bytes); sink.writeFrom(in);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSinkTest.java
} public void testWrite_bytes() throws IOException { assertArrayEquals(new byte[0], sink.getBytes()); sink.write(bytes); assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed()); assertArrayEquals(bytes, sink.getBytes()); } public void testWriteFrom_inputStream() throws IOException { ByteArrayInputStream in = new ByteArrayInputStream(bytes); sink.writeFrom(in);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CharSinkTester.java
String separator = "\r\n"; sink.writeLines(lines.stream(), separator); assertContainsExpectedLines(separator); } private void assertContainsExpectedString() throws IOException { assertThat(factory.getSinkContents()).isEqualTo(expected); } private void assertContainsExpectedLines(String separator) throws IOException {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacSignatureTest.java
} /** * 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();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/SocketOutputStream.java
import java.io.FilterOutputStream; import java.io.IOException; import java.io.OutputStream; class SocketOutputStream extends FilterOutputStream { SocketOutputStream(final OutputStream out) { super(out); } @Override public synchronized void write(final byte[] b, int off, final int len) throws IOException { if (len > 0xFFFF) { throw new IOException("write too large: " + len); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.7K bytes - Click Count (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
* * @throws IOException if an I/O error occurred while deleting the file buffer */ public void reset() throws IOException { try { state.reset(); } finally { reachabilityFence(byteSource); } } @Override public void write(int b) throws IOException { try { state.write(b); } finally {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 17:30:49 GMT 2026 - 12.4K bytes - Click Count (0)