public class IMCInputStream
extends java.io.FilterInputStream
implements java.io.DataInput
Constructor and Description |
---|
IMCInputStream(java.io.InputStream in,
IMCDefinition defs) |
Modifier and Type | Method and Description |
---|---|
int |
getCrc() |
IMCDefinition |
getImcDefinition() |
boolean |
isBigEndian() |
static void |
main(java.lang.String[] args) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
IMCMessage |
readInlineMessage() |
int |
readInt() |
java.lang.String |
readLine() |
long |
readLong() |
IMCMessage |
readMessage() |
java.lang.String |
readPlaintext() |
byte[] |
readRawdata() |
short |
readShort() |
int |
readUnsignedByte() |
long |
readUnsignedInt() |
java.math.BigInteger |
readUnsignedLong() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
int |
resetCrc() |
int |
resetCrc(int crc) |
int |
resync(int syncword) |
void |
setBigEndian(boolean big_endian) |
int |
skipBytes(int n) |
public IMCInputStream(java.io.InputStream in, IMCDefinition defs)
public boolean isBigEndian()
public void setBigEndian(boolean big_endian)
public int getCrc()
public int resetCrc(int crc)
public int resetCrc()
public int resync(int syncword) throws java.io.IOException
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public void readFully(byte[] b) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
public void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
java.io.IOException
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
java.io.IOException
public long readUnsignedInt() throws java.io.IOException
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
java.io.IOException
public java.math.BigInteger readUnsignedLong() throws java.io.IOException
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
java.io.IOException
public byte[] readRawdata() throws java.io.IOException
java.io.IOException
public java.lang.String readPlaintext() throws java.io.IOException
java.io.IOException
public IMCMessage readInlineMessage() throws java.io.IOException
java.io.IOException
public IMCMessage readMessage() throws java.io.IOException
java.io.IOException
public IMCDefinition getImcDefinition()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception