Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for ByteSink (0.34 sec)

  1. android/guava/src/com/google/common/io/ByteSink.java

     * @since 14.0
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    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}.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

    import java.lang.reflect.Method;
    import java.util.Map.Entry;
    import junit.framework.TestSuite;
    
    /**
     * A generator of {@code TestSuite} instances for testing {@code ByteSink} implementations.
     * Generates tests of all methods on a {@code ByteSink} given various inputs written to it as well
     * as sub-suites for testing the {@code CharSink} view in the same way.
     *
     * @author Colin Decker
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  3. 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 =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  4. 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 =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSinkTester.java

    import java.lang.reflect.Method;
    import java.util.Map.Entry;
    import junit.framework.TestSuite;
    
    /**
     * A generator of {@code TestSuite} instances for testing {@code ByteSink} implementations.
     * Generates tests of all methods on a {@code ByteSink} given various inputs written to it as well
     * as sub-suites for testing the {@code CharSink} view in the same way.
     *
     * @author Colin Decker
     */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
  6. 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.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  7. 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
    @GwtIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

        source.copyTo(out);
        assertExpectedBytes(out.toByteArray());
      }
    
      public void testCopyTo_byteSink() throws IOException {
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
        // HERESY! but it's ok just for this I guess
        source.copyTo(
            new ByteSink() {
              @Override
              public OutputStream openStream() throws IOException {
                return out;
              }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.Table;
    import com.google.common.collect.Tables;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultimap;
    import com.google.common.io.ByteSink;
    import com.google.common.io.ByteSource;
    import com.google.common.io.ByteStreams;
    import com.google.common.io.CharSink;
    import com.google.common.io.CharSource;
    import com.google.common.primitives.Primitives;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  10. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.Table;
    import com.google.common.collect.Tables;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultimap;
    import com.google.common.io.ByteSink;
    import com.google.common.io.ByteSource;
    import com.google.common.io.ByteStreams;
    import com.google.common.io.CharSink;
    import com.google.common.io.CharSource;
    import com.google.common.primitives.Primitives;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
Back to top