- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for ByteStreams (0.07 sec)
-
android/guava-tests/test/com/google/common/io/TestWriter.java
/** @author Colin Decker */ public class TestWriter extends FilterWriter { private final TestOutputStream out; public TestWriter(TestOption... options) throws IOException { this(new TestOutputStream(ByteStreams.nullOutputStream(), options)); } public TestWriter(TestOutputStream out) { super(new OutputStreamWriter(checkNotNull(out), UTF_8)); this.out = out; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSinkTester.java
OutputStream out = sink.openStream(); try { ByteStreams.copy(new ByteArrayInputStream(data), out); } finally { out.close(); } assertContainsExpectedBytes(); } public void testOpenBufferedStream() throws IOException { OutputStream out = sink.openBufferedStream(); try { ByteStreams.copy(new ByteArrayInputStream(data), out); } finally { out.close();
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
OutputStream out = sink.openStream(); try { ByteStreams.copy(new ByteArrayInputStream(data), out); } finally { out.close(); } assertContainsExpectedBytes(); } public void testOpenBufferedStream() throws IOException { OutputStream out = sink.openBufferedStream(); try { ByteStreams.copy(new ByteArrayInputStream(data), out); } finally { out.close();
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/ByteSourceTester.java
InputStream in = source.openStream(); try { byte[] readBytes = ByteStreams.toByteArray(in); assertExpectedBytes(readBytes); } finally { in.close(); } } public void testOpenBufferedStream() throws IOException { InputStream in = source.openBufferedStream(); try { byte[] readBytes = ByteStreams.toByteArray(in); assertExpectedBytes(readBytes); } finally {
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/src/com/google/common/io/LittleEndianDataInputStream.java
throw new UnsupportedOperationException("readLine is not supported"); } @Override public void readFully(byte[] b) throws IOException { ByteStreams.readFully(this, b); } @Override public void readFully(byte[] b, int off, int len) throws IOException { ByteStreams.readFully(this, b, off, len); } @Override public int skipBytes(int n) throws IOException { return (int) in.skip(n); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 7.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteArrayDataInput.java
@Override void readFully(byte b[]); @Override void readFully(byte b[], int off, int len); // not guaranteed to skip n bytes so result should NOT be ignored // use ByteStreams.skipFully or one of the read methods instead @Override int skipBytes(int n); @CanIgnoreReturnValue // to skip a byte @Override boolean readBoolean(); @CanIgnoreReturnValue // to skip a byte
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 2.8K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteArrayDataInput.java
@Override void readFully(byte b[]); @Override void readFully(byte b[], int off, int len); // not guaranteed to skip n bytes so result should NOT be ignored // use ByteStreams.skipFully or one of the read methods instead @Override int skipBytes(int n); @CanIgnoreReturnValue // to skip a byte @Override boolean readBoolean(); @CanIgnoreReturnValue // to skip a byte
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MultiInputStreamTest.java
} }) .iterator()); assertEquals(0, multi.skip(-1)); assertEquals(0, multi.skip(-1)); assertEquals(0, multi.skip(0)); ByteStreams.skipFully(multi, 20); assertEquals(20, multi.read()); } public void testReadSingle_noStackOverflow() throws IOException { // https://github.com/google/guava/issues/2996
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.6K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteSink.java
*/ @CanIgnoreReturnValue public long writeFrom(InputStream input) throws IOException { checkNotNull(input); try (OutputStream out = openStream()) { return ByteStreams.copy(input, out); } } /** * A char sink that encodes written characters with a charset and writes resulting bytes to this * byte sink. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 28 16:55:09 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java
} }) .iterator()); assertEquals(0, multi.skip(-1)); assertEquals(0, multi.skip(-1)); assertEquals(0, multi.skip(0)); ByteStreams.skipFully(multi, 20); assertEquals(20, multi.read()); } public void testReadSingle_noStackOverflow() throws IOException { // https://github.com/google/guava/issues/2996
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.6K bytes - Viewed (0)