|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.siemens.ct.exi.io.channel.AbstractDecoderChannel
com.siemens.ct.exi.io.channel.BitDecoderChannel
public class BitDecoderChannel
Simple datatype decoder based on an underlying BitInputStream
.
Reading a single bit from the underlying stream involves several VM
operations. Thus, whenever possible, whole bytes should be read instead.
Constructor Summary | |
---|---|
BitDecoderChannel(java.io.InputStream is)
Construct a decoder from input stream |
Method Summary | |
---|---|
void |
align()
|
int |
decode()
Decodes a single byte |
byte[] |
decodeBinary()
Decode a binary value as a length-prefixed sequence of octets. |
boolean |
decodeBoolean()
Decode a single boolean value. |
int |
decodeNBitUnsignedInteger(int n)
Decodes and returns an n-bit unsigned integer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.siemens.ct.exi.io.channel.DecoderChannel |
---|
decodeBinaryAsString, decodeBooleanAsString, decodeDateTime, decodeDateTimeAsString, decodeDecimal, decodeDecimalAsString, decodeFloat, decodeFloatAsString, decodeInteger, decodeIntegerAsString, decodeNBitUnsignedIntegerAsString, decodeString, decodeStringOnly, decodeUnsignedInteger, decodeUnsignedIntegerAsLong, decodeUnsignedIntegerAsString |
Constructor Detail |
---|
public BitDecoderChannel(java.io.InputStream is)
Method Detail |
---|
public void align() throws java.io.IOException
java.io.IOException
public int decode() throws java.io.IOException
DecoderChannel
decode
in interface DecoderChannel
java.io.IOException
public int decodeNBitUnsignedInteger(int n) throws java.io.IOException
decodeNBitUnsignedInteger
in interface DecoderChannel
java.io.IOException
public boolean decodeBoolean() throws java.io.IOException
decodeBoolean
in interface DecoderChannel
java.io.IOException
public byte[] decodeBinary() throws java.io.IOException
decodeBinary
in interface DecoderChannel
java.io.IOException
|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |