类 EndianDataInputStream
- java.lang.Object
-
- org.meteoinfo.common.io.EndianDataInputStream
-
public class EndianDataInputStream extends java.lang.Object- 作者:
- yaqiang - come from OpenJump
-
-
构造器概要
构造器 构造器 说明 EndianDataInputStream(java.io.InputStream in)Creates new EndianDataInputStream
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()close the streabytereadByteBE()read a byte in BigEndian - the same as LE because its only 1 bytbytereadByteLE()read a byte in LittleEndian - the same as BE because its only 1 bytvoidreadByteLEnum(byte[] b)read a byte in LittleEndian - the same as BE because its only 1 bytedoublereadDoubleBE()read a 64bit double in BEdoublereadDoubleLE()read a 64bit double in LEintreadIntBE()read a 32bit int in BEintreadIntLE()read a 32bit int in LElongreadLongBE()read a 64bit long in BElongreadLongLE()read a 64bit long in LEshortreadShortBE()read a 16bit short in BEshortreadShortLE()read a 16bit short in LEintreadUnsignedByteBE()read a byte in BigEndian - the same as LE because its only 1 byte.intreadUnsignedByteLE()read a byte in LittleEndian - the same as BE because its only 1 byte.intskipBytes(int num)skip ahead in the stream
-
-
-
方法详细资料
-
close
public void close() throws java.io.IOExceptionclose the strea- 抛出:
java.io.IOException
-
readByteBE
public byte readByteBE() throws java.io.IOExceptionread a byte in BigEndian - the same as LE because its only 1 byt- 抛出:
java.io.IOException
-
readByteLE
public byte readByteLE() throws java.io.IOExceptionread 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.IOExceptionread a byte in LittleEndian - the same as BE because its only 1 byte- 抛出:
java.io.IOException
-
readUnsignedByteBE
public int readUnsignedByteBE() throws java.io.IOExceptionread 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.IOExceptionread 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.IOExceptionread a 16bit short in BE- 抛出:
java.io.IOException
-
readShortLE
public short readShortLE() throws java.io.IOExceptionread a 16bit short in LE- 抛出:
java.io.IOException
-
readIntBE
public int readIntBE() throws java.io.IOExceptionread a 32bit int in BE- 抛出:
java.io.IOException
-
readIntLE
public int readIntLE() throws java.io.IOExceptionread a 32bit int in LE- 抛出:
java.io.IOException
-
readLongBE
public long readLongBE() throws java.io.IOExceptionread a 64bit long in BE- 抛出:
java.io.IOException
-
readLongLE
public long readLongLE() throws java.io.IOExceptionread a 64bit long in LE- 抛出:
java.io.IOException
-
readDoubleBE
public double readDoubleBE() throws java.io.IOExceptionread a 64bit double in BE- 抛出:
java.io.IOException
-
readDoubleLE
public double readDoubleLE() throws java.io.IOExceptionread a 64bit double in LE- 抛出:
java.io.IOException
-
skipBytes
public int skipBytes(int num) throws java.io.IOExceptionskip ahead in the stream- 参数:
num- number of bytes to read ahead- 抛出:
java.io.IOException
-
-