- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for openBufferedStream (0.12 sec)
-
android/guava/src/com/google/common/io/CharSink.java
* * @throws IOException if an I/O error occurs while opening the writer * @since 15.0 (in 14.0 with return type {@link BufferedWriter}) */ public Writer openBufferedStream() throws IOException { Writer writer = openStream(); return (writer instanceof BufferedWriter) ? (BufferedWriter) writer : new BufferedWriter(writer); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSinkTest.java
private TestCharSink sink; @Override public void setUp() { sink = new TestCharSink(); } public void testOpenBufferedStream() throws IOException { Writer writer = sink.openBufferedStream(); assertTrue(sink.wasStreamOpened()); assertFalse(sink.wasStreamClosed()); writer.write(STRING); writer.close(); assertTrue(sink.wasStreamClosed());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 4.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSinkTest.java
@Override protected void setUp() throws Exception { sink = new TestByteSink(); } public void testOpenBufferedStream() throws IOException { OutputStream out = sink.openBufferedStream(); assertTrue(sink.wasStreamOpened()); assertFalse(sink.wasStreamClosed()); out.write(new byte[] {1, 2, 3, 4}); out.close(); assertTrue(sink.wasStreamClosed());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 3.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSinkTest.java
@Override protected void setUp() throws Exception { sink = new TestByteSink(); } public void testOpenBufferedStream() throws IOException { OutputStream out = sink.openBufferedStream(); assertTrue(sink.wasStreamOpened()); assertFalse(sink.wasStreamClosed()); out.write(new byte[] {1, 2, 3, 4}); out.close(); assertTrue(sink.wasStreamClosed());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSinkTester.java
} finally { out.close(); } assertContainsExpectedBytes(); } public void testOpenBufferedStream() throws IOException { OutputStream out = sink.openBufferedStream(); try { ByteStreams.copy(new ByteArrayInputStream(data), out); } finally { out.close(); } assertContainsExpectedBytes(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSinkTester.java
} finally { out.close(); } assertContainsExpectedBytes(); } public void testOpenBufferedStream() throws IOException { OutputStream out = sink.openBufferedStream(); try { ByteStreams.copy(new ByteArrayInputStream(data), out); } finally { out.close(); } assertContainsExpectedBytes(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 4K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteSink.java
* * @throws IOException if an I/O error occurs while opening the stream * @since 15.0 (in 14.0 with return type {@link BufferedOutputStream}) */ public OutputStream openBufferedStream() throws IOException { OutputStream out = openStream(); return (out instanceof BufferedOutputStream) ? (BufferedOutputStream) out : new BufferedOutputStream(out); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 28 16:55:09 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
} reader.close(); writer.close(); assertExpectedString(writer.toString()); } public void testOpenBufferedStream() throws IOException { BufferedReader reader = source.openBufferedStream(); StringWriter writer = new StringWriter(); char[] buf = new char[64]; int read; while ((read = reader.read(buf)) != -1) { writer.write(buf, 0, read); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 7.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
assertExpectedBytes(readBytes); } finally { in.close(); } } public void testOpenBufferedStream() throws IOException { InputStream in = source.openBufferedStream(); try { byte[] readBytes = ByteStreams.toByteArray(in); assertExpectedBytes(readBytes); } finally { in.close(); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
} reader.close(); writer.close(); assertExpectedString(writer.toString()); } public void testOpenBufferedStream() throws IOException { BufferedReader reader = source.openBufferedStream(); StringWriter writer = new StringWriter(); char[] buf = new char[64]; int read; while ((read = reader.read(buf)) != -1) { writer.write(buf, 0, read); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0)