- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for CharSink (0.06 sec)
-
android/guava/src/com/google/common/io/CharSink.java
/** * A destination to which characters can be written, such as a text file. Unlike a {@link Writer}, a * {@code CharSink} is not an open, stateful stream that can be written to and closed. Instead, it * is an immutable <i>supplier</i> of {@code Writer} instances. * * <p>{@code CharSink} provides two kinds of methods: * * <ul> * <li><b>Methods that return a writer:</b> These methods should return a <i>new</i>, independent
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
static final CharSource BROKEN_OPEN_SOURCE = new TestCharSource("ABC", OPEN_THROWS); static final CharSink BROKEN_WRITE_SINK = new TestCharSink(WRITE_THROWS); static final CharSink BROKEN_CLOSE_SINK = new TestCharSink(CLOSE_THROWS); static final CharSink BROKEN_OPEN_SINK = new TestCharSink(OPEN_THROWS); private static final ImmutableSet<CharSource> BROKEN_SOURCES =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
static final CharSource BROKEN_OPEN_SOURCE = new TestCharSource("ABC", OPEN_THROWS); static final CharSink BROKEN_WRITE_SINK = new TestCharSink(WRITE_THROWS); static final CharSink BROKEN_CLOSE_SINK = new TestCharSink(CLOSE_THROWS); static final CharSink BROKEN_OPEN_SINK = new TestCharSink(OPEN_THROWS); private static final ImmutableSet<CharSource> BROKEN_SOURCES =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 11.4K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteSink.java
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}. */ public CharSink asCharSink(Charset charset) { return new AsCharSink(charset); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 28 16:55:09 UTC 2024 - 5K bytes - Viewed (0) -
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. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 23 19:57:03 UTC 2023 - 1.5K bytes - Viewed (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. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 23 19:57:03 UTC 2023 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestCharSink.java
import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Writer; /** * A char sink for testing that has configurable behavior. * * @author Colin Decker */ public class TestCharSink extends CharSink implements TestStreamSupplier { private final TestByteSink byteSink; public TestCharSink(TestOption... options) { this.byteSink = new TestByteSink(options); } public String getString() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
} }; } public static CharSinkFactory asCharSinkFactory(final ByteSinkFactory factory) { checkNotNull(factory); return new CharSinkFactory() { @Override public CharSink createSink() throws IOException { return factory.createSink().asCharSink(UTF_8); } @Override public String getSinkContents() throws IOException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
} }; } public static CharSinkFactory asCharSinkFactory(final ByteSinkFactory factory) { checkNotNull(factory); return new CharSinkFactory() { @Override public CharSink createSink() throws IOException { return factory.createSink().asCharSink(UTF_8); } @Override public String getSinkContents() throws IOException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 12.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSinkTest.java
import com.google.common.collect.ImmutableList; import java.io.IOException; import java.io.StringReader; import java.io.Writer; import java.util.EnumSet; /** * Tests for the default implementations of {@code CharSink} methods. * * @author Colin Decker */ public class CharSinkTest extends IoTestCase { private static final String STRING = ASCII + I18N; private TestCharSink sink; @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 4.5K bytes - Viewed (0)