public abstract class AbstractEncoderChannel extends Object implements EncoderChannel
| Constructor and Description |
|---|
AbstractEncoderChannel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encodeBigInteger(BigInteger bi) |
void |
encodeBinary(byte[] b)
Encode a binary value as a length-prefixed sequence of octets.
|
void |
encodeDateTime(DateTimeValue datetime)
The Date-Time datatype representation is a sequence of values
representing the individual components of the Date-Time
|
void |
encodeDecimal(boolean negative,
IntegerValue integral,
IntegerValue reverseFraction)
Encode a decimal represented as a Boolean sign followed by two Unsigned
Integers.
|
void |
encodeFloat(FloatValue fv)
Encode a Float represented as two consecutive Integers.
|
void |
encodeInteger(int n)
Encode an arbitrary precision integer using a sign bit followed by a
sequence of octets.
|
void |
encodeIntegerValue(IntegerValue iv) |
protected void |
encodeLong(long l) |
void |
encodeString(String s)
Encode a string as a length-prefixed sequence of UCS codepoints, each of
which is encoded as an integer.
|
void |
encodeStringOnly(String s)
Encode a string as a sequence of UCS codepoints, each of which is encoded
as an integer.
|
protected void |
encodeUnsignedBigInteger(BigInteger bi) |
void |
encodeUnsignedInteger(int n)
Encode an arbitrary precision non negative integer using a sequence of
octets.
|
void |
encodeUnsignedIntegerValue(IntegerValue iv) |
protected void |
encodeUnsignedLong(long l) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalign, encode, encode, encodeBoolean, encodeNBitUnsignedInteger, flush, getLength, getOutputStreampublic void encodeBinary(byte[] b)
throws IOException
encodeBinary in interface EncoderChannelb - byte arrayIOException - IO exceptionpublic void encodeString(String s) throws IOException
encodeString in interface EncoderChannels - stringIOException - IO exceptionpublic void encodeStringOnly(String s) throws IOException
EncoderChannelencodeStringOnly in interface EncoderChannels - stringIOException - IO exceptionpublic void encodeInteger(int n)
throws IOException
encodeInteger in interface EncoderChanneln - integerIOException - IO exceptionprotected void encodeLong(long l)
throws IOException
IOExceptionprotected void encodeBigInteger(BigInteger bi) throws IOException
IOExceptionpublic void encodeIntegerValue(IntegerValue iv) throws IOException
encodeIntegerValue in interface EncoderChannelIOExceptionpublic void encodeUnsignedInteger(int n)
throws IOException
encodeUnsignedInteger in interface EncoderChanneln - unsigned integerIOException - IO exceptionprotected void encodeUnsignedLong(long l)
throws IOException
IOExceptionprotected void encodeUnsignedBigInteger(BigInteger bi) throws IOException
IOExceptionpublic void encodeUnsignedIntegerValue(IntegerValue iv) throws IOException
encodeUnsignedIntegerValue in interface EncoderChannelIOExceptionpublic void encodeDecimal(boolean negative,
IntegerValue integral,
IntegerValue reverseFraction)
throws IOException,
RuntimeException
encodeDecimal in interface EncoderChannelnegative - is negativeintegral - integral valuereverseFraction - reverse fractionIOException - IO exceptionRuntimeExceptionpublic void encodeFloat(FloatValue fv) throws IOException
encodeFloat in interface EncoderChannelfv - float valueIOException - IO exceptionpublic void encodeDateTime(DateTimeValue datetime) throws IOException
EncoderChannelencodeDateTime in interface EncoderChanneldatetime - datetimeIOException - IO exceptionCopyright © 2018 Siemens AG. All rights reserved.