Class BinaryWriter

Direct Known Subclasses:
MicrosoftWordWriter, RtfWriter

public abstract class BinaryWriter extends AbstractWriter
Abstract super-class for writing records to a binary stream.
  • Constructor Details

    • BinaryWriter

      public BinaryWriter(File file)
      Creates a writer to the given file, which is created (or truncated) immediately rather than when the writer is opened.
    • BinaryWriter

      public BinaryWriter(OutputStream outputStream)
      Creates a writer to the given stream, wrapped in a BufferedOutputStream unless it already is one; the stream is closed when this writer is closed.
  • Method Details