Interface TextWriter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  TextWriter.STDERR
      A TextWriter implementation which writes to standard error.
      static class  TextWriter.STDOUT
      A TextWriter implementation which writes to standard out.
      static class  TextWriter.STREAM
      A TextWriter implementation which writes to a given output stream.
    • Method Detail

      • writeRecord

        void writeRecord​(String record)
        Writes a text record to the output stream.
        Parameters:
        record - - the record to write.
      • flush

        void flush()
        Flushes any buffered contents of the output stream.
      • shutdown

        void shutdown()
        Releases any resources held by the writer.
      • getBytesWritten

        long getBytesWritten()
        Retrieves the number of bytes written by this writer.
        Returns:
        the number of bytes written by this writer.