Class SizedInputStream

    • Constructor Detail

      • SizedInputStream

        public SizedInputStream​(InputStream in,
                                Long size)
        Package protected constructor
        Parameters:
        in - The wrapped input stream
        size - The stream size, in bytes. Null means unknown.
    • Method Detail

      • getSize

        public Long getSize()
        Returns:
        The stream size, in bytes. Null means unknown.