- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getSinkContents (0.22 sec)
-
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
public CharSink createSink() throws IOException { return factory.createSink().asCharSink(Charsets.UTF_8); } @Override public String getSinkContents() throws IOException { return new String(factory.getSinkContents(), Charsets.UTF_8); } @Override public String getExpected(String data) { /*
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 06 12:56:11 GMT 2023 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSinkTester.java
sink.writeLines(lines.stream(), separator); assertContainsExpectedLines(separator); } private void assertContainsExpectedString() throws IOException { assertEquals(expected, factory.getSinkContents()); } private void assertContainsExpectedLines(String separator) throws IOException { String expected = expectedLines.isEmpty() ? "" : Joiner.on(separator).join(expectedLines); if (!lines.isEmpty()) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
public CharSink createSink() throws IOException { return factory.createSink().asCharSink(Charsets.UTF_8); } @Override public String getSinkContents() throws IOException { return new String(factory.getSinkContents(), Charsets.UTF_8); } @Override public String getExpected(String data) { /*
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Sep 09 17:57:59 GMT 2021 - 17.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSinkTester.java
sink.writeLines(lines, separator); assertContainsExpectedLines(separator); } private void assertContainsExpectedString() throws IOException { assertEquals(expected, factory.getSinkContents()); } private void assertContainsExpectedLines(String separator) throws IOException { String expected = expectedLines.isEmpty() ? "" : Joiner.on(separator).join(expectedLines); if (!lines.isEmpty()) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactory.java
public interface SinkFactory<S, T> extends SourceSinkFactory<S, T> { /** Creates a new sink. */ S createSink() throws IOException; /** Gets the current content of the created sink. */ T getSinkContents() throws IOException; } /** Factory for {@link ByteSource} instances. */ public interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> {} /** Factory for {@link ByteSink} instances. */
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSinkTester.java
sink.writeFrom(new ByteArrayInputStream(data)); assertContainsExpectedBytes(); } private void assertContainsExpectedBytes() throws IOException { assertArrayEquals(expected, factory.getSinkContents()); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSinkTester.java
sink.writeFrom(new ByteArrayInputStream(data)); assertContainsExpectedBytes(); } private void assertContainsExpectedBytes() throws IOException { assertArrayEquals(expected, factory.getSinkContents()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactory.java
public interface SinkFactory<S, T> extends SourceSinkFactory<S, T> { /** Creates a new sink. */ S createSink() throws IOException; /** Gets the current content of the created sink. */ T getSinkContents() throws IOException; } /** Factory for {@link ByteSource} instances. */ public interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> {} /** Factory for {@link ByteSink} instances. */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3K bytes - Viewed (0)