Class DataInputBase

  • All Implemented Interfaces:
    DataInput, java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    CachedDataInput

    public abstract class DataInputBase
    extends java.lang.Object
    implements DataInput
    Created by andrey on 24.07.17.
    • Nested Class Summary

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.ByteBuffer inputBuff  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      abstract java.nio.ByteBuffer getLayer​(int layerIndex)  
      int getSize()  
      • Methods inherited from class java.lang.Object

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

      • inputBuff

        protected java.nio.ByteBuffer inputBuff
    • Constructor Detail

      • DataInputBase

        protected DataInputBase()
      • DataInputBase

        protected DataInputBase​(java.nio.ByteBuffer inputBuff)
      • DataInputBase

        protected DataInputBase​(DataInputBase other)
    • Method Detail

      • getSize

        public final int getSize()
        Specified by:
        getSize in interface DataInput
      • getLayer

        public abstract java.nio.ByteBuffer getLayer​(int layerIndex)
        Specified by:
        getLayer in interface DataInput
      • close

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