Class LfsFactory.LfsInputStream

    • Constructor Detail

      • LfsInputStream

        public LfsInputStream​(InputStream stream,
                              long length)
        Create a new wrapper around a certain stream
        stream - the stream to wrap. the stream will be closed on close().
        length - the expected length of the stream
      • LfsInputStream

        public LfsInputStream​(TemporaryBuffer buffer)
                       throws IOException
        Create a new wrapper around a temporary buffer.
        buffer - the buffer to initialize stream and length from. The buffer will be destroyed on close()
        IOException - in case of an error opening the stream to the buffer.