public interface EncoderChannel
| 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
|
void |
encode(byte[] b,
int off,
int len) |
void |
encode(int b) |
void |
encodeBinary(byte[] b)
Encode a binary value as a length-prefixed sequence of octets.
|
void |
encodeBoolean(boolean b)
Encode a single boolean value.
|
void |
encodeDateTime(DateTimeValue cal)
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) |
void |
encodeNBitUnsignedInteger(int b,
int n) |
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.
|
void |
encodeUnsignedInteger(int n)
Encode an arbitrary precision non negative integer using a sequence of
octets.
|
void |
encodeUnsignedIntegerValue(IntegerValue iv) |
void |
flush() |
int |
getLength()
Returns the number of bytes written.
|
OutputStream |
getOutputStream() |
OutputStream getOutputStream()
void flush()
throws IOException
IOExceptionint getLength()
void align()
throws IOException
IOException - IO exceptionvoid encode(int b)
throws IOException
IOExceptionvoid encode(byte[] b,
int off,
int len)
throws IOException
IOExceptionvoid encodeNBitUnsignedInteger(int b,
int n)
throws IOException
IOExceptionvoid encodeBoolean(boolean b)
throws IOException
b - booleanIOException - IO exceptionvoid encodeBinary(byte[] b)
throws IOException
b - byte arrayIOException - IO exceptionvoid encodeString(String s) throws IOException
s - stringIOException - IO exceptionvoid encodeStringOnly(String s) throws IOException
s - stringIOException - IO exceptionvoid encodeUnsignedInteger(int n)
throws IOException
n - unsigned integerIOException - IO exceptionvoid encodeUnsignedIntegerValue(IntegerValue iv) throws IOException
IOExceptionvoid encodeInteger(int n)
throws IOException
n - integerIOException - IO exceptionvoid encodeIntegerValue(IntegerValue iv) throws IOException
IOExceptionvoid encodeDecimal(boolean negative,
IntegerValue integral,
IntegerValue reverseFraction)
throws IOException
negative - is negativeintegral - integral valuereverseFraction - reverse fractionIOException - IO exceptionvoid encodeFloat(FloatValue fv) throws IOException
fv - float valueIOException - IO exceptionvoid encodeDateTime(DateTimeValue cal) throws IOException
cal - datetimeIOException - IO exceptionCopyright © 2018 Siemens AG. All rights reserved.