Class StreamWrapper


  • public class StreamWrapper
    extends Object
    Wrapper around a length-limited InputStream.
    Author:
    Oliver Jowett (oliver@opencloud.com)
    • Constructor Detail

      • StreamWrapper

        public StreamWrapper​(byte[] data,
                             int offset,
                             int length)
      • StreamWrapper

        public StreamWrapper​(InputStream stream,
                             int length)
    • Method Detail

      • getLength

        public int getLength()
      • getOffset

        public int getOffset()
      • getBytes

        public byte[] getBytes()