|
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()
Align to next byte-aligned boundary in the stream if it is not already at such a boundary |
int |
decode()
Decodes a single byte |
BinaryValue |
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 com.siemens.ct.exi.io.channel.AbstractDecoderChannel |
---|
decodeBooleanValue, decodeDateTimeValue, decodeDecimalValue, decodeDoubleValue, decodeFloatValue, decodeHugeIntegerValue, decodeIntegerValue, decodeLongValue, decodeNBitUnsignedIntegerValue, decodeString, decodeStringOnly, decodeUnsignedHugeIntegerValue, decodeUnsignedInteger, decodeUnsignedIntegerValue, decodeUnsignedLongValue |
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 |
---|
decodeBooleanValue, decodeDateTimeValue, decodeDecimalValue, decodeDoubleValue, decodeFloatValue, decodeHugeIntegerValue, decodeIntegerValue, decodeLongValue, decodeNBitUnsignedIntegerValue, decodeString, decodeStringOnly, decodeUnsignedHugeIntegerValue, decodeUnsignedInteger, decodeUnsignedIntegerValue, decodeUnsignedLongValue |
Constructor Detail |
---|
public BitDecoderChannel(java.io.InputStream is)
Method Detail |
---|
public void align() throws java.io.IOException
DecoderChannel
align
in interface DecoderChannel
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 BinaryValue 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 |