- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 24 for ByteSink (0.14 seconds)
-
android/guava/src/com/google/common/io/ByteSink.java
* </ul> * * @since 14.0 * @author Colin Decker */ @J2ktIncompatible @GwtIncompatible public abstract class ByteSink { /** Constructor for use by subclasses. */ protected ByteSink() {} /** * Returns a {@link CharSink} view of this {@code ByteSink} that writes characters to this sink as * bytes encoded with the given {@link Charset charset}. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 4.9K bytes - Click Count (0) -
android/guava/src/com/google/common/io/package-info.java
* and files. * * <p>At the core of this package are the Source/Sink types: {@link ByteSource ByteSource}, {@link * CharSource CharSource}, {@link ByteSink ByteSink} and {@link CharSink CharSink}. They are * factories for I/O streams that provide many convenience methods that handle both opening and * closing streams for you. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
private static final ByteSource BROKEN_READ_SOURCE = new TestByteSource(new byte[10], READ_THROWS); private static final ByteSink BROKEN_CLOSE_SINK = new TestByteSink(CLOSE_THROWS); private static final ByteSink BROKEN_OPEN_SINK = new TestByteSink(OPEN_THROWS); private static final ByteSink BROKEN_WRITE_SINK = new TestByteSink(WRITE_THROWS); private static final ImmutableSet<ByteSource> BROKEN_SOURCES =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
private static final ByteSource BROKEN_READ_SOURCE = new TestByteSource(new byte[10], READ_THROWS); private static final ByteSink BROKEN_CLOSE_SINK = new TestByteSink(CLOSE_THROWS); private static final ByteSink BROKEN_OPEN_SINK = new TestByteSink(OPEN_THROWS); private static final ByteSink BROKEN_WRITE_SINK = new TestByteSink(WRITE_THROWS); private static final ImmutableSet<ByteSource> BROKEN_SOURCES =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/SourceSinkFactory.java
} /** Factory for {@link ByteSource} instances. */ interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> {} /** Factory for {@link ByteSink} instances. */ interface ByteSinkFactory extends SinkFactory<ByteSink, byte[]> {} /** Factory for {@link CharSource} instances. */ interface CharSourceFactory extends SourceFactory<CharSource, String> {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 30 16:59:10 GMT 2025 - 3K bytes - Click Count (0) -
android/guava/src/com/google/common/io/CharSink.java
* doing something and finally closing the writer that was opened. * </ul> * * <p>Any {@link ByteSink} may be viewed as a {@code CharSink} with a specific {@linkplain Charset * character encoding} using {@link ByteSink#asCharSink(Charset)}. Characters written to the * resulting {@code CharSink} will written to the {@code ByteSink} as encoded bytes. * * @since 14.0 * @author Colin Decker */ @J2ktIncompatible @GwtIncompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:07:06 GMT 2025 - 6.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestCharSink.java
private final TestByteSink byteSink; public TestCharSink(TestOption... options) { this.byteSink = new TestByteSink(options); } public String getString() { return new String(byteSink.getBytes(), UTF_8); } @Override public boolean wasStreamOpened() { return byteSink.wasStreamOpened(); } @Override public boolean wasStreamClosed() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/TestCharSink.java
private final TestByteSink byteSink; public TestCharSink(TestOption... options) { this.byteSink = new TestByteSink(options); } public String getString() { return new String(byteSink.getBytes(), UTF_8); } @Override public boolean wasStreamOpened() { return byteSink.wasStreamOpened(); } @Override public boolean wasStreamClosed() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactory.java
} /** Factory for {@link ByteSource} instances. */ interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> {} /** Factory for {@link ByteSink} instances. */ interface ByteSinkFactory extends SinkFactory<ByteSink, byte[]> {} /** Factory for {@link CharSource} instances. */ interface CharSourceFactory extends SourceFactory<CharSource, String> {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 30 16:59:10 GMT 2025 - 3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestByteSink.java
import org.jspecify.annotations.NullUnmarked; /** * A byte sink for testing that has configurable behavior. * * @author Colin Decker */ @NullUnmarked public class TestByteSink extends ByteSink implements TestStreamSupplier { private final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); private final ImmutableSet<TestOption> options; private boolean outputStreamOpened;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)