:: com :: sun :: star :: io ::
|
service ObjectInputStream |
- Description
- is a stream which allows reading the data of persistent objects.
Implementations of this service must fulfill the specifications of the
DataInputStream service. It must be chained to an
XMarkableStream. Therefore, it provides the
XMarkableStream interface, and delegates the calls to the
chained object.
The written objects are held until this instance is destroyed.
The references to the objects are read as four-byte integers.
Data format reads:
short InfoLength
long ObjectReference // 0 indicates no object
UTF ServiceName // length of 0 indicates this is only a reference
long ObjectLength // 0 if it is a reference or no object, otherwise the len of the object data
Object ObjectData // the data of the object
... // skipping additional data
- Guarantees
- -thread safe
- -allow buffer size is 2 ^ 31 -1
- -maximum object reference identifier must be the number of objects.
- -object reference identifier 0 indicates no object
- -skip addition data
- -set the stream position behind the object data
|
Exported Interfaces - Summary |
XObjectInputStream |
allows to read the data from the stream.
|
XActiveDataSink |
allows to set the underlying inputstream
|
XConnectable |
allows to navigate via a chain of streams
|
XMarkableStream |
allows to set marks within the stream. The implementation
may forward calls to this interface to a chained markablestream.
|
Exported Interfaces - Details |
XObjectInputStream
- Description
- allows to read the data from the stream.
|
|
XActiveDataSink
- Description
- allows to set the underlying inputstream
|
|
XConnectable
- Description
- allows to navigate via a chain of streams
|
|
XMarkableStream
- Description
- allows to set marks within the stream. The implementation
may forward calls to this interface to a chained markablestream.
|
|
Top of Page
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.