public interface DecoderChannel
| Modifier and Type | Method and Description |
|---|---|
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
|
byte[] |
decodeBinary()
Decode a binary value as a length-prefixed sequence of octets.
|
boolean |
decodeBoolean()
Decode a single boolean value.
|
BooleanValue |
decodeBooleanValue() |
DateTimeValue |
decodeDateTimeValue(DateTimeType type)
Decode Date-Time as sequence of values representing the individual
components of the Date-Time.
|
DecimalValue |
decodeDecimalValue()
Decode a decimal represented as a Boolean sign followed by two Unsigned
Integers.
|
FloatValue |
decodeFloatValue()
Decode a Float represented as two consecutive Integers.
|
IntegerValue |
decodeIntegerValue()
Decode an arbitrary precision integer using a sign bit followed by a
sequence of octets.
|
int |
decodeNBitUnsignedInteger(int n)
Decodes and returns an n-bit unsigned integer.
|
IntegerValue |
decodeNBitUnsignedIntegerValue(int n) |
char[] |
decodeString()
Decode a string as a length-prefixed sequence of UCS codepoints, each of
which is encoded as an integer.
|
char[] |
decodeStringOnly(int length)
Decode the characters of a string whose length has already been read.
|
int |
decodeUnsignedInteger()
Decode an arbitrary precision non negative integer using a sequence of
octets.
|
IntegerValue |
decodeUnsignedIntegerValue() |
void |
skip(long n)
Skips over and discards
n bytes of data from this channel. |
int decode()
throws IOException
IOException - IO exceptionvoid align()
throws IOException
IOException - IO exceptionvoid skip(long n) throws IOException
n bytes of data from this channel.n - number of bytes to skipIOException - IO exceptionint decodeNBitUnsignedInteger(int n)
throws IOException
n - number of bitsIOException - IO exceptionIntegerValue decodeNBitUnsignedIntegerValue(int n) throws IOException
IOExceptionboolean decodeBoolean()
throws IOException
IOException - IO exceptionBooleanValue decodeBooleanValue() throws IOException
IOExceptionbyte[] decodeBinary()
throws IOException
IOException - IO exceptionchar[] decodeString()
throws IOException
IOException - IO exceptionchar[] decodeStringOnly(int length)
throws IOException
length - Length of the character sequence to read.IOException - IO exceptionint decodeUnsignedInteger()
throws IOException
IOException - IO exceptionIntegerValue decodeUnsignedIntegerValue() throws IOException
IOExceptionIntegerValue decodeIntegerValue() throws IOException
IOException - IO exceptionDecimalValue decodeDecimalValue() throws IOException
IOException - IO exceptionFloatValue decodeFloatValue() throws IOException
IOException - IO exceptionDateTimeValue decodeDateTimeValue(DateTimeType type) throws IOException
type - date-Time typeIOException - IO exceptionCopyright © 2018 Siemens AG. All rights reserved.