Class FileIterator.ReadResult

java.lang.Object
com.zeroc.IceGrid.FileIterator.ReadResult
Enclosing interface:
FileIterator

public static class FileIterator.ReadResult extends Object
Holds the result of operation read.
  • Field Details

    • returnValue

      public boolean returnValue
      true if EOF is encountered.
    • lines

      public String[] 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

      public ReadResult(boolean returnValue, String[] lines)
      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

      public void write(OutputStream ostr)
      Marshals the result for the read operation.
      Parameters:
      ostr - the output stream to write this result to
    • read

      public void read(InputStream istr)
      Unmarshals the result of the read operation.
      Parameters:
      istr - the input stream to read this result from