public abstract class AbstractDecoderChannel extends Object implements DecoderChannel
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
sbHelper |
| Constructor and Description |
|---|
AbstractDecoderChannel() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected int |
decodeInteger()
Decode an arbitrary precision integer using a sign bit followed by a
sequence of octets.
|
IntegerValue |
decodeIntegerValue()
Decode an arbitrary precision integer using a sign bit followed by a
sequence of octets.
|
protected long |
decodeLong() |
IntegerValue |
decodeNBitUnsignedIntegerValue(int n)
Decodes and returns an n-bit unsigned integer as string.
|
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 (#code-points) has already
been read.
|
int |
decodeUnsignedInteger()
Decode an arbitrary precision non negative integer using a sequence of
octets.
|
IntegerValue |
decodeUnsignedIntegerValue() |
protected IntegerValue |
decodeUnsignedIntegerValue(boolean negative) |
protected long |
decodeUnsignedLong() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalign, decode, decodeBinary, decodeBoolean, decodeNBitUnsignedInteger, skipprotected StringBuilder sbHelper
public BooleanValue decodeBooleanValue() throws IOException
decodeBooleanValue in interface DecoderChannelIOExceptionpublic char[] decodeString()
throws IOException
decodeString in interface DecoderChannelIOException - IO exceptionpublic char[] decodeStringOnly(int length)
throws IOException
decodeStringOnly in interface DecoderChannellength - Length of the character sequence to read.IOException - IO exceptionpublic final int decodeUnsignedInteger()
throws IOException
decodeUnsignedInteger in interface DecoderChannelIOException - IO exceptionprotected long decodeUnsignedLong()
throws IOException
IOExceptionprotected int decodeInteger()
throws IOException
IOException - IO exceptionprotected long decodeLong()
throws IOException
IOExceptionpublic IntegerValue decodeIntegerValue() throws IOException
DecoderChanneldecodeIntegerValue in interface DecoderChannelIOException - IO exceptionpublic IntegerValue decodeUnsignedIntegerValue() throws IOException
decodeUnsignedIntegerValue in interface DecoderChannelIOExceptionprotected final IntegerValue decodeUnsignedIntegerValue(boolean negative) throws IOException
IOExceptionpublic IntegerValue decodeNBitUnsignedIntegerValue(int n) throws IOException
decodeNBitUnsignedIntegerValue in interface DecoderChannelIOExceptionpublic DecimalValue decodeDecimalValue() throws IOException
decodeDecimalValue in interface DecoderChannelIOException - IO exceptionpublic FloatValue decodeFloatValue() throws IOException
decodeFloatValue in interface DecoderChannelIOException - IO exceptionpublic DateTimeValue decodeDateTimeValue(DateTimeType type) throws IOException
decodeDateTimeValue in interface DecoderChanneltype - date-Time typeIOException - IO exceptionCopyright © 2018 Siemens AG. All rights reserved.