Class DataItemInputStream

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

    public final class DataItemInputStream
    extends java.io.InputStream
    NOTE: the class is not thread safe!
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      void close()  
      void mark​(int readLimit)  
      boolean markSupported()  
      int read()  
      int read​(byte[] buff, int offset, int length)  
      void reset()  
      • Methods inherited from class java.io.InputStream

        nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, transferTo
      • Methods inherited from class java.lang.Object

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

      • DataItemInputStream

        public DataItemInputStream​(DataItem dataItem)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • read

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

        public final int read​(byte[] buff,
                              int offset,
                              int length)
                       throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • available

        public final int available()
        Overrides:
        available in class java.io.InputStream
      • markSupported

        public final boolean markSupported()
        Overrides:
        markSupported in class java.io.InputStream
      • mark

        public final void mark​(int readLimit)
        Overrides:
        mark in class java.io.InputStream
      • reset

        public final void reset()
                         throws java.io.IOException
        Overrides:
        reset in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public final void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream