Class FastByteArrayOutputStream.FastByteArrayInputStream

java.lang.Object
java.io.InputStream
org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
FastByteArrayOutputStream

private static final class FastByteArrayOutputStream.FastByteArrayInputStream extends InputStream
An implementation of InputStream that reads from a given FastByteArrayOutputStream.
  • Field Details

    • fastByteArrayOutputStream

      private final FastByteArrayOutputStream fastByteArrayOutputStream
    • buffersIterator

      private final Iterator<byte[]> buffersIterator
    • currentBuffer

      private byte[] currentBuffer
    • currentBufferLength

      private int currentBufferLength
    • nextIndexInCurrentBuffer

      private int nextIndexInCurrentBuffer
    • totalBytesRead

      private int totalBytesRead
  • Constructor Details

    • FastByteArrayInputStream

      public FastByteArrayInputStream(FastByteArrayOutputStream fastByteArrayOutputStream)
      Create a new FastByteArrayOutputStreamInputStream backed by the given FastByteArrayOutputStream.
  • Method Details