BinReaderWriter Class

This is a Library topic for RemObjects SDK for Java
This page is generated from external data, please do not update
Namespaces — Interfaces — Classes — Enums — Implements
Contents |
Overview
This class is used to serialize and deserialize any kind of data into the bytes buffer. It provides a lot of symmetrical read/write methods for each datatype, so you can easily write and read any objects to and from ByteStream. This class is used by the BinMessage to read/write data into the binary message. In most cases you do not need to deal with this class directly.
Location
- Archive: com.remobjects.sdk.jar
- Namespace: com.remobjects.sdk
- Ancestry: java.lang.Object | BinReaderWriter
Instance Methods
| constructor |
|---|
|
Creates BinReaderWriter.
|
| clear |
|
Clears internal streams.
|
| clone |
|
Creates copy of the BinReaderWriter.
|
| getInputStream |
|
Returns input stream.
|
| getOutputStream |
|
Returns output stream.
|
| readAnsiString |
|
Reads the next value as AnsiString from the stream.
|
| readBoolean |
|
Reads the next Int32 value from the stream as Boolean.
|
| readByte |
|
Reads the next Byte value from the stream.
|
| readBytes (int): array of byte |
|
Reads the bytes buffer with the specified size.
|
| readBytes (int, int): array of byte |
|
Reads the bytes buffer with the given size and offset.
|
| readCurrencyBigEndian |
|
Reads the next currency value from the BE stream.
|
| readCurrencyLittleEndian |
|
Reads the next currency value from the LE stream.
|
| readDateTime |
|
Reads the next date value from the stream.
|
| readDecimalLittleEndian |
|
Reads the next decimal value from the LE stream.
|
| readDoubleBigEndian |
|
Reads the next double value from the BE stream.
|
| readDoubleLittleEndian |
|
Reads the next double value from the LE stream.
|
| readEnum |
|
Reads the next enum value from the stream.
|
| readGuid |
|
Reads the next UUID value from the stream.
|
| readInt16BigEndian |
|
Reads the next short value from the BE stream.
|
| readInt16LittleEndian |
|
Reads the next short value from the LE stream.
|
| readInt32BigEndian |
|
Reads the next int value from the BE stream.
|
| readInt32LittleEndian |
|
Reads the next int value from the LE stream.
|
| readInt64BigEndian |
|
Reads the next long value from the BE stream.
|
| readInt64LittleEndian |
|
Reads the next long value from the LE stream.
|
| readSingleBigEndian |
|
Reads the next float value from the BE stream.
|
| readSingleLittleEndian |
|
Reads the next float value from the LE stream.
|
| readUtf8String |
|
Reads the next value as UTF8String from the stream.
|
| readVariant |
|
Reads the next VariantType value from the stream.
|
| readWideString |
|
Reads the next value as WideString from the stream.
|
| setInputStream |
|
Sets given input stream.
|
| setOutputStream |
|
Set given output strream.
|
| tryReadUtf8String |
|
Reads a Utf8 string value from the stream. In contrast to the readUtf8String: method, this method does not throw an unexpectedStringLength exception when attempting to read nonexistent data at the end of the stream.
|
| writeAnsiString |
|
Writes a String value into the stream as WideString.
|
| writeBoolean |
|
Writes the given boolean value into the stream as Int32 value, where 0 is false and any other value is true.
|
| writeByte |
|
Writes the given Byte value into the stream.
|
| writeBytes (array of byte, int) |
|
Writes the bytes buffer with the given length into the stream.
|
| writeBytes (array of byte, int, int) |
|
Writes the bytes buffer with the given length and offset into the stream.
|
| writeCurrencyBigEndian |
|
Writes a Currency value into the BE stream.
|
| writeCurrencyLittleEndian |
|
Currency value to be put into the LE stream
|
| writeDateTime |
|
Writes a date value into the stream.
|
| writeDecimalLittleEndian |
|
Writes a Decimal value into the LE stream.
|
| writeDoubleBigEndian |
|
Writes a Double value into the BE stream.
|
| writeDoubleLittleEndian |
|
Writes a Double value into the LE stream.
|
| writeEnum |
|
Writes an enumeration item value into the stream.
|
| writeGuid |
|
Writes a UUID value into the stream.
|
| writeInt16BigEndian |
|
Writes an short value into the BE stream.
|
| writeInt16LittleEndian |
|
Writes an short value into the LE stream.
|
| writeInt32BigEndian |
|
Writes an int value into the BE stream.
|
| writeInt32LittleEndian |
|
Writes an int value into the LE stream.
|
| writeInt64BigEndian |
|
Writes an long value into the BE stream.
|
| writeInt64LittleEndian |
|
Writes an long value into the LE stream.
|
| writeSingleBigEndian |
|
Writes an float value into the BE stream.
|
| writeSingleLittleEndian |
|
Writes an float value into the LE stream.
|
| writeUtf8String |
|
Writes a string value into the stream as UTF8 String.
|
| writeWideString |
|
Writes a String value into the stream as WideString.
|
See Also
- Lists
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK for JavaScript: Objects

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript