Package org.h2.server

Class TcpServerThread.CachedInputStream

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

    static class TcpServerThread.CachedInputStream
    extends java.io.FilterInputStream
    An input stream with a position.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.io.ByteArrayInputStream DUMMY  
      private long pos  
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      CachedInputStream​(java.io.InputStream in)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getPos()  
      int read()  
      int read​(byte[] buff, int off, int len)  
      long skip​(long n)  
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, reset
      • 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
    • Field Detail

      • DUMMY

        private static final java.io.ByteArrayInputStream DUMMY
      • pos

        private long pos
    • Constructor Detail

      • CachedInputStream

        CachedInputStream​(java.io.InputStream in)
    • Method Detail

      • read

        public int read​(byte[] buff,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • getPos

        public long getPos()