Searched refs:CharSink (Results 1 – 13 of 13) sorted by relevance
244 static final CharSink BROKEN_WRITE_SINK = new TestCharSink(WRITE_THROWS);245 static final CharSink BROKEN_CLOSE_SINK = new TestCharSink(CLOSE_THROWS);246 static final CharSink BROKEN_OPEN_SINK = new TestCharSink(OPEN_THROWS);250 private static final ImmutableSet<CharSink> BROKEN_SINKS268 for (CharSink out : BROKEN_SINKS) { in testCopyExceptions()277 for (CharSink out : BROKEN_SINKS) { in testCopyExceptions()296 for (CharSink out : BROKEN_SINKS) { in testCopyExceptions()305 for (CharSink out : BROKEN_SINKS) { in testCopyExceptions()319 private static void runFailureTest(CharSource in, CharSink out) { in runFailureTest()330 private static int runSuppressionFailureTest(CharSource in, CharSink out) { in runSuppressionFailureTest()[all …]
37 public class CharSinkTester extends SourceSinkTester<CharSink, String, CharSinkFactory> {64 private CharSink sink;
99 public interface CharSinkFactory extends SinkFactory<CharSink, String> {
31 public class TestCharSink extends CharSink implements TestStreamSupplier {
128 public CharSink createSink() throws IOException {368 public CharSink createSink() throws IOException {
58 public CharSink asCharSink(Charset charset) { in asCharSink()138 private final class AsCharSink extends CharSink {
49 public abstract class CharSink { class54 protected CharSink() {} in CharSink() method in CharSink
124 public long copyTo(CharSink sink) throws IOException { in copyTo()
229 public static CharSink asCharSink(File file, Charset charset, in asCharSink()
195 public final ByteSink encodingSink(final CharSink encodedSink) { in encodingSink()
29 import com.google.common.io.CharSink;185 new CharSink() { in file() method
74 import com.google.common.io.CharSink;235 .put(CharSink.class, NullByteSink.INSTANCE.asCharSink(Charsets.UTF_8))
58 import com.google.common.io.CharSink;338 assertNotNull(ArbitraryInstances.get(CharSink.class)); in testGet_io()