public interface SDTStream
Boolean
, Byte
, Character
, Destination
, Double
,Float
,Integer
,Long
,SDTMap
,Short
,SDTStream
,String
.For values written as the row type, they can be read as the column type according to the following table.
| | boolean byte byte[] char dest double float int long Map short Stream String |-------------------------------------------------------------------------------------- |boolean | X X |byte | X X X X X |byte[] | X |char | X X |dest | X |double | X X |float | X X X |int | X X X X X |long | X X X X X |Map | X |SMFMsg | |short | X X X X X |Stream | X |String | X X X X X X X X |--------------------------------------------------------------------------------------
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the current contents of the stream.
|
boolean |
hasRemaining()
Returns true if there is more to be read on the stream.
|
void |
mark()
Marks the current read pointer for later use by reset().
|
Object |
read()
Reads the next object on the stream.
|
Boolean |
readBoolean()
Reads a Boolean from a Stream.
|
Byte |
readByte()
Reads a Byte from a Stream.
|
byte[] |
readBytes()
Reads a byte[] from a Stream.
|
Character |
readCharacter()
Reads a Character from a Stream.
|
Destination |
readDestination()
Reads a Destination from a Stream.
|
Double |
readDouble()
Reads a Double from a Stream.
|
Float |
readFloat()
Reads a Float from a Stream.
|
Integer |
readInteger()
Reads an Integer from a Stream.
|
Long |
readLong()
Reads a Long from a Stream.
|
SDTMap |
readMap()
Reads a SDTMap from a Stream.
|
Short |
readShort()
Reads a Short from a Stream.
|
SDTStream |
readStream()
Reads a SDTStream from a Stream.
|
String |
readString()
Reads a String from a Stream.
|
void |
reset()
Resets the read pointer to the last position saved by mark().
|
void |
rewind()
Rewinds the read pointer to the beginning of the stream.
|
void |
writeBoolean(Boolean value)
Writes a Boolean to a stream.
|
void |
writeByte(Byte value)
Writes a Byte to a stream.
|
void |
writeBytes(byte[] value)
Writes a byte[] to a stream.
|
void |
writeBytes(byte[] value,
int offset,
int length)
Writes a byte[] to a stream.
|
void |
writeCharacter(Character value)
Writes a Character to a stream.
|
void |
writeDestination(Destination value)
Writes a Destination to a stream.
|
void |
writeDouble(Double value)
Writes a Double to a stream.
|
void |
writeFloat(Float value)
Writes a Float to a stream.
|
void |
writeInteger(Integer value)
Writes an Integer to a stream.
|
void |
writeLong(Long value)
Writes a Long to a stream.
|
void |
writeMap(SDTMap value)
Writes a SDTMap to a stream.
|
void |
writeObject(Object value)
Writes an Object to a stream.
|
void |
writeShort(Short value)
Writes a Short to a stream.
|
void |
writeStream(SDTStream value)
Writes a SDTStream to a stream.
|
void |
writeString(String value)
Writes a String to a stream.
|
void clear()
Object read() throws SDTException
SDTException
- If unable to read a value because of some internal reason.SDTEOFException
- If unable to read because end of stream reached.Boolean readBoolean() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- if this type conversion is invalid.Byte readByte() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.byte[] readBytes() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.Character readCharacter() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.Destination readDestination() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.Double readDouble() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.Float readFloat() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.Integer readInteger() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.Long readLong() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.SDTMap readMap() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.Short readShort() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.SDTStream readStream() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.String readString() throws SDTException
SDTException
- If unable to read a value due to some internal reason.SDTEOFException
- If unable to read because end of stream reached.SDTFormatException
- If this type conversion is invalid.void mark()
void reset()
void rewind()
boolean hasRemaining()
void writeBoolean(Boolean value)
value
- The value to write. This can be null.void writeByte(Byte value)
value
- The value to write. This can be null.void writeBytes(byte[] value)
value
- The value to write. This can be null.void writeBytes(byte[] value, int offset, int length)
value
- The value to write. This can be null.void writeCharacter(Character value)
value
- The value to write. This can be null.void writeDestination(Destination value)
value
- The value to write. This can be null.void writeDouble(Double value)
value
- The value to write. This can be null.void writeFloat(Float value)
value
- The value to write. This can be null.void writeInteger(Integer value)
value
- The value to write. This can be null.void writeLong(Long value)
value
- The value to write. This can be null.void writeMap(SDTMap value)
value
- The value to write. This can be null.void writeShort(Short value)
value
- The value to write. This can be null.void writeStream(SDTStream value)
value
- The value to write. This can be null.void writeString(String value)
value
- The value to write. This can be null.void writeObject(Object value)
IllegalArgumentException
if the
Object argument is not one of the supported data types.value
- The value to write. This can be null.Copyright 2004-2024 Solace Corporation. All rights reserved.