类 EndianDataInputStream


  • public class EndianDataInputStream
    extends java.lang.Object
    作者:
    yaqiang - come from OpenJump
    • 构造器概要

      构造器 
      构造器 说明
      EndianDataInputStream​(java.io.InputStream in)
      Creates new EndianDataInputStream
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()
      close the strea
      byte readByteBE()
      read a byte in BigEndian - the same as LE because its only 1 byt
      byte readByteLE()
      read a byte in LittleEndian - the same as BE because its only 1 byt
      void readByteLEnum​(byte[] b)
      read a byte in LittleEndian - the same as BE because its only 1 byte
      double readDoubleBE()
      read a 64bit double in BE
      double readDoubleLE()
      read a 64bit double in LE
      int readIntBE()
      read a 32bit int in BE
      int readIntLE()
      read a 32bit int in LE
      long readLongBE()
      read a 64bit long in BE
      long readLongLE()
      read a 64bit long in LE
      short readShortBE()
      read a 16bit short in BE
      short readShortLE()
      read a 16bit short in LE
      int readUnsignedByteBE()
      read a byte in BigEndian - the same as LE because its only 1 byte.
      int readUnsignedByteLE()
      read a byte in LittleEndian - the same as BE because its only 1 byte.
      int skipBytes​(int num)
      skip ahead in the stream
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • EndianDataInputStream

        public EndianDataInputStream​(java.io.InputStream in)
        Creates new EndianDataInputStream
        参数:
        in -
    • 方法详细资料

      • close

        public void close()
                   throws java.io.IOException
        close the strea
        抛出:
        java.io.IOException
      • readByteBE

        public byte readByteBE()
                        throws java.io.IOException
        read a byte in BigEndian - the same as LE because its only 1 byt
        抛出:
        java.io.IOException
      • readByteLE

        public byte readByteLE()
                        throws java.io.IOException
        read a byte in LittleEndian - the same as BE because its only 1 byt
        抛出:
        java.io.IOException
      • readByteLEnum

        public void readByteLEnum​(byte[] b)
                           throws java.io.IOException
        read a byte in LittleEndian - the same as BE because its only 1 byte
        抛出:
        java.io.IOException
      • readUnsignedByteBE

        public int readUnsignedByteBE()
                               throws java.io.IOException
        read a byte in BigEndian - the same as LE because its only 1 byte. returns int as per java.io.DataStream
        抛出:
        java.io.IOException
      • readUnsignedByteLE

        public int readUnsignedByteLE()
                               throws java.io.IOException
        read a byte in LittleEndian - the same as BE because its only 1 byte. returns int as per java.io.DataStream
        抛出:
        java.io.IOException
      • readShortBE

        public short readShortBE()
                          throws java.io.IOException
        read a 16bit short in BE
        抛出:
        java.io.IOException
      • readShortLE

        public short readShortLE()
                          throws java.io.IOException
        read a 16bit short in LE
        抛出:
        java.io.IOException
      • readIntBE

        public int readIntBE()
                      throws java.io.IOException
        read a 32bit int in BE
        抛出:
        java.io.IOException
      • readIntLE

        public int readIntLE()
                      throws java.io.IOException
        read a 32bit int in LE
        抛出:
        java.io.IOException
      • readLongBE

        public long readLongBE()
                        throws java.io.IOException
        read a 64bit long in BE
        抛出:
        java.io.IOException
      • readLongLE

        public long readLongLE()
                        throws java.io.IOException
        read a 64bit long in LE
        抛出:
        java.io.IOException
      • readDoubleBE

        public double readDoubleBE()
                            throws java.io.IOException
        read a 64bit double in BE
        抛出:
        java.io.IOException
      • readDoubleLE

        public double readDoubleLE()
                            throws java.io.IOException
        read a 64bit double in LE
        抛出:
        java.io.IOException
      • skipBytes

        public int skipBytes​(int num)
                      throws java.io.IOException
        skip ahead in the stream
        参数:
        num - number of bytes to read ahead
        抛出:
        java.io.IOException