Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for createSink (0.46 sec)

  1. 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(Charsets.UTF_8);
          }
    
          @Override
          public String getSinkContents() throws IOException {
            return new String(factory.getSinkContents(), Charsets.UTF_8);
    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)
  2. 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(Charsets.UTF_8);
          }
    
          @Override
          public String getSinkContents() throws IOException {
            return new String(factory.getSinkContents(), Charsets.UTF_8);
    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)
  3. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

        super(factory, data, suiteName, caseDesc, method);
      }
    
      @Override
      protected void setUp() throws Exception {
        sink = factory.createSink();
      }
    
      public void testOpenStream() throws IOException {
        OutputStream out = sink.openStream();
        try {
          ByteStreams.copy(new ByteArrayInputStream(data), out);
        } finally {
          out.close();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/SourceSinkFactory.java

        S createSource(T data) throws IOException;
      }
    
      /** Factory for byte or char sinks. */
      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. */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CharSinkTester.java

        this.lines = getLines(string);
        this.expectedLines = getLines(expected);
      }
    
      @Override
      protected void setUp() throws Exception {
        this.sink = factory.createSink();
      }
    
      public void testOpenStream() throws IOException {
        Writer writer = sink.openStream();
        try {
          writer.write(data);
        } finally {
          writer.close();
        }
    
    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)
  6. guava-tests/test/com/google/common/io/ByteSinkTester.java

        super(factory, data, suiteName, caseDesc, method);
      }
    
      @Override
      protected void setUp() throws Exception {
        sink = factory.createSink();
      }
    
      public void testOpenStream() throws IOException {
        OutputStream out = sink.openStream();
        try {
          ByteStreams.copy(new ByteArrayInputStream(data), out);
        } finally {
          out.close();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharSinkTester.java

        this.lines = getLines(string);
        this.expectedLines = getLines(expected);
      }
    
      @Override
      protected void setUp() throws Exception {
        this.sink = factory.createSink();
      }
    
      public void testOpenStream() throws IOException {
        Writer writer = sink.openStream();
        try {
          writer.write(data);
        } finally {
          writer.close();
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/SourceSinkFactory.java

        S createSource(T data) throws IOException;
      }
    
      /** Factory for byte or char sinks. */
      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. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/MoreFilesTest.java

          Path fooSymlink = fs.getPath("symlink");
          Files.createSymbolicLink(fooSymlink, fooPath);
    
          Path fooHardlink = fs.getPath("hardlink");
          Files.createLink(fooHardlink, fooPath);
    
          assertThat(MoreFiles.equal(fooPath, fooSymlink)).isTrue();
          assertThat(MoreFiles.equal(fooPath, fooHardlink)).isTrue();
          assertThat(MoreFiles.equal(fooSymlink, fooHardlink)).isTrue();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
Back to top