Class InputStreamByteInput

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, ByteInput

    public class InputStreamByteInput
    extends java.io.FilterInputStream
    implements ByteInput
    An InputStream implementing ByteInput which reads input from another InputStream. Usually the Marshalling.createInputStream(ByteInput) method should be used to create instances because it can detect when the target already extends InputStream.
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      InputStreamByteInput​(java.io.InputStream inputStream)
      Construct a new instance.
    • Method Summary

      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
    • Constructor Detail

      • InputStreamByteInput

        public InputStreamByteInput​(java.io.InputStream inputStream)
        Construct a new instance.
        Parameters:
        inputStream - the input stream to read from