public interface InputStream
OutputStream| Modifier and Type | Method and Description |
|---|---|
Communicator |
communicator()
Returns the communicator for this input stream.
|
void |
destroy()
Destroys the stream and its associated resources.
|
void |
endEncapsulation()
Indicates that the end of an encapsulation has been reached.
|
SlicedData |
endException(boolean preserve)
Marks the end of a user exception.
|
SlicedData |
endObject(boolean preserve)
Marks the end of an Ice object.
|
void |
endSlice()
Indicates that the end of an object or exception slice has been reached.
|
EncodingVersion |
getEncoding()
Determines the current encoding version.
|
int |
pos() |
int |
readAndCheckSeqSize(int minSize)
Extracts and check a sequence size from the stream.
|
boolean |
readBool()
Extracts a boolean value from the stream.
|
boolean[] |
readBoolSeq()
Extracts a sequence of boolean values from the stream.
|
byte |
readByte()
Extracts a byte value from the stream.
|
java.nio.ByteBuffer |
readByteBuffer()
Extracts a sequence of byte values from the stream as a ByteBuffer.
|
byte[] |
readByteSeq()
Extracts a sequence of byte values from the stream.
|
double |
readDouble()
Extracts a double value from the stream.
|
java.nio.DoubleBuffer |
readDoubleBuffer()
Extracts a sequence of double values from the stream as a DoubleBuffer.
|
double[] |
readDoubleSeq()
Extracts a sequence of double values from the stream.
|
int |
readEnum(int maxValue)
Read an enumerated value.
|
float |
readFloat()
Extracts a float value from the stream.
|
java.nio.FloatBuffer |
readFloatBuffer()
Extracts a sequence of float values from the stream as a FloatBuffer.
|
float[] |
readFloatSeq()
Extracts a sequence of float values from the stream.
|
int |
readInt()
Extracts an integer value from the stream.
|
java.nio.IntBuffer |
readIntBuffer()
Extracts a sequence of int values from the stream as a IntBuffer.
|
int[] |
readIntSeq()
Extracts a sequence of integer values from the stream.
|
long |
readLong()
Extracts a long value from the stream.
|
java.nio.LongBuffer |
readLongBuffer()
Extracts a sequence of long values from the stream as a LongBuffer.
|
long[] |
readLongSeq()
Extracts a sequence of long values from the stream.
|
void |
readObject(ReadObjectCallback cb)
Extracts the index of a Slice class from the stream.
|
boolean |
readOptional(int tag,
OptionalFormat format)
Determine if an optional value is available for reading.
|
void |
readPendingObjects()
Indicates that unmarshaling is complete, except for any Slice objects.
|
ObjectPrx |
readProxy()
Extracts a proxy from the stream.
|
java.io.Serializable |
readSerializable()
Extracts a serializable Java object from the stream.
|
short |
readShort()
Extracts a short value from the stream.
|
java.nio.ShortBuffer |
readShortBuffer()
Extracts a sequence of short values from the stream as a ShortBuffer.
|
short[] |
readShortSeq()
Extracts a sequence of short values from the stream.
|
int |
readSize()
Extracts a size from the stream.
|
java.lang.String |
readString()
Extracts a string from the stream.
|
java.lang.String[] |
readStringSeq()
Extracts a string sequence from the stream.
|
void |
rewind()
Resets the read position of the stream to the beginning.
|
void |
skip(int sz)
Skips ahead in the stream.
|
EncodingVersion |
skipEncapsulation()
Skips over an encapsulation.
|
void |
skipSize()
Skips over a size value.
|
void |
skipSlice()
Skips over an object or exception slice.
|
void |
sliceObjects(boolean slice)
Determines the behavior of the stream when extracting Slice objects.
|
EncodingVersion |
startEncapsulation()
Reads the start of an encapsulation.
|
void |
startException()
Marks the start of a user exception.
|
void |
startObject()
Marks the start of an Ice object.
|
java.lang.String |
startSlice()
Reads the start of an object or exception slice.
|
void |
throwException()
Extracts a user exception from the stream and throws it.
|
void |
throwException(UserExceptionReaderFactory factory)
Extracts a user exception from the stream and throws it, using the supplied
factory to instantiate a UserExceptionReader.
|
Communicator communicator()
void sliceObjects(boolean slice)
slice - If true (the default), slicing is enabled; if false,
slicing is disabled. If slicing is disabled and the stream encounters a Slice type ID
during decoding for which no object factory is installed, it raises NoObjectFactoryException.boolean readBool()
boolean[] readBoolSeq()
byte readByte()
byte[] readByteSeq()
java.nio.ByteBuffer readByteBuffer()
java.io.Serializable readSerializable()
short readShort()
short[] readShortSeq()
java.nio.ShortBuffer readShortBuffer()
int readInt()
int[] readIntSeq()
java.nio.IntBuffer readIntBuffer()
long readLong()
long[] readLongSeq()
java.nio.LongBuffer readLongBuffer()
float readFloat()
float[] readFloatSeq()
java.nio.FloatBuffer readFloatBuffer()
double readDouble()
double[] readDoubleSeq()
java.nio.DoubleBuffer readDoubleBuffer()
java.lang.String readString()
java.lang.String[] readStringSeq()
int readSize()
int readAndCheckSeqSize(int minSize)
minSize - The minimum size of an element of the sequence.ObjectPrx readProxy()
void readObject(ReadObjectCallback cb)
cb - The callback to notify the application when the extracted instance is available.
The Ice run time extracts Slice classes in stages. The Ice run time calls ReadObjectCallback.invoke(Ice.Object)
when the corresponding instance has been fully unmarshaled.ReadObjectCallbackint readEnum(int maxValue)
maxValue - The maximum enumerator value in the definition.void throwException()
throws UserException
UserException - The user exception that was unmarshaled.void throwException(UserExceptionReaderFactory factory) throws UserException
factory - A factory that creates UserExceptionReader instances.UserException - The user exception that was unmarshaled.void startObject()
SlicedData endObject(boolean preserve)
preserve - Pass true and the stream will preserve the unknown slices of the instance, or false
to discard the unknown slices.void startException()
SlicedData endException(boolean preserve)
preserve - Pass true and the stream will preserve the unknown slices of the exception, or false
to discard the unknown slices.java.lang.String startSlice()
void endSlice()
void skipSlice()
EncodingVersion startEncapsulation()
void endEncapsulation()
EncodingVersion skipEncapsulation()
EncodingVersion getEncoding()
void readPendingObjects()
readPendingObjects triggers the
calls to ReadObjectCallback.invoke(Ice.Object) that inform the application that unmarshaling of a Slice
object is complete.void rewind()
void skip(int sz)
sz - The number of bytes to skip.void skipSize()
boolean readOptional(int tag,
OptionalFormat format)
tag - The tag associated with the value.format - The optional format for the value.int pos()
void destroy()
destroy prior
to releasing the last reference to a stream; failure to do so may result in resource leaks.