Class StreamInput

  • All Implemented Interfaces:
    Input

    public class StreamInput
    extends java.lang.Object
    implements Input
    Author:
    Alexey Stashok
    • Constructor Detail

      • StreamInput

        public StreamInput​(StreamReader streamReader)
    • Method Detail

      • read

        public byte read()
                  throws java.io.IOException
        Specified by:
        read in interface Input
        Throws:
        java.io.IOException
      • skip

        public void skip​(int length)
        Specified by:
        skip in interface Input
      • isBuffered

        public boolean isBuffered()
        Specified by:
        isBuffered in interface Input
      • takeBuffer

        public Buffer takeBuffer()
        Description copied from interface: Input
        Takes the Input's Buffer. This Input should never try to access this Buffer.
        Specified by:
        takeBuffer in interface Input
        Returns:
        the Input's Buffer. This Input should never try to access this Buffer.
      • size

        public int size()
        Specified by:
        size in interface Input
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface Input
        Throws:
        java.io.IOException