|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataObjectInputStream
DataObjectInputStream is supplied to message handlers to allow agents to stream an arbitrarily large set of SIFDataObjects from SIF_Response and SIF_Event messages.
To use DataObjectInputStream, construct a while loop that calls
available() to determine if more objects are available from the
stream. Within the loop, call readDataObject() to obtain the next
SIFDataObject instance from the stream. Note all SIFDataObjects in the stream
are of the same type. To determine the type, call getObjectType()
to retrieve an ElementDef constant from the SIFDTD class.
For example,
if( myStream.getObjectType() == SIFDTD.STUDENTPERSONAL ) {
while( myStream.available() ) {
StudentPersonal sp = (StudentPersonal)myStream.readDataObject();
...
}
}
| Method Summary | |
|---|---|
boolean |
available()
Determines if any SIFDataObjects are currently available for reading |
ElementDef |
getObjectType()
Determines the type of SIF Data Object provided by the stream |
SIFDataObject |
readDataObject()
Read the next SIFDataObject from the stream |
| Method Detail |
|---|
SIFDataObject readDataObject()
throws ADKException
ADKExceptionElementDef getObjectType()
SIFDTD.STUDENTPERSONAL)boolean available()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||