Class PeekInputStream

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

    public class PeekInputStream
    extends java.io.InputStream
    • Constructor Summary

      Constructors 
      Constructor Description
      PeekInputStream​(java.io.InputStream delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consumeAll()  
      int peek​(int depth)  
      int read()  
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PeekInputStream

        public PeekInputStream​(java.io.InputStream delegate)
    • Method Detail

      • peek

        public int peek​(int depth)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • consumeAll

        public void consumeAll()
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException