类 EndianDataInputStream


  • public class EndianDataInputStream
    extends Object
    作者:
    yaqiang - come from OpenJump
    • 构造器详细资料

      • EndianDataInputStream

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

      • readByteBE

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

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

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

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

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

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

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

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