Interface AbstractByteArrayOutputStream.InputStreamConstructor<T extends java.io.InputStream>

  • Type Parameters:
    T - the type of the InputStream.
    Enclosing class:
    AbstractByteArrayOutputStream
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    protected static interface AbstractByteArrayOutputStream.InputStreamConstructor<T extends java.io.InputStream>
    Constructor for an InputStream subclass.
    • Method Detail

      • construct

        T construct​(byte[] buf,
                    int offset,
                    int length)
        Construct an InputStream subclass.
        Parameters:
        buf - the buffer
        offset - the offset into the buffer
        length - the length of the buffer
        Returns:
        the InputStream subclass.