java.lang.Object
com.zeroc.IceGrid.FileIterator.ReadResult
- Enclosing interface:
- FileIterator
Holds the result of operation read.
-
Field Summary
FieldsModifier and TypeFieldDescriptionString[]
The lines read from the file.boolean
true
if EOF is encountered. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ReadResult
(boolean returnValue, String[] lines) This constructor makes shallow copies of the results for operation read. -
Method Summary
Modifier and TypeMethodDescriptionvoid
read
(InputStream istr) Unmarshals the result of the read operation.void
write
(OutputStream ostr) Marshals the result for the read operation.
-
Field Details
-
returnValue
public boolean returnValuetrue
if EOF is encountered. -
lines
The lines read from the file. If there was nothing to read from the file since the last call to read, an empty sequence is returned. The last line of the sequence is always incomplete (and therefore no newline character should be added when writing the last line to the to the output device).
-
-
Constructor Details
-
ReadResult
public ReadResult()Default constructor. -
ReadResult
This constructor makes shallow copies of the results for operation read.- Parameters:
returnValue
-true
if EOF is encountered.lines
- The lines read from the file. If there was nothing to read from the file since the last call to read, an empty sequence is returned. The last line of the sequence is always incomplete (and therefore no newline character should be added when writing the last line to the to the output device).
-
-
Method Details
-
write
Marshals the result for the read operation.- Parameters:
ostr
- the output stream to write this result to
-
read
Unmarshals the result of the read operation.- Parameters:
istr
- the input stream to read this result from
-