Interface DocumentWriter

All Known Subinterfaces:
Writer
All Known Implementing Classes:
AbstractWriter, XMLDOMWriter

public interface DocumentWriter
An interface for writing documents.

The DocumentWriter interface provides methods for writing characters, line breaks, and end of file markers, as well as retrieving the result document.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(char value)
    Adds a character to the document.
    void
    add(String value)
    Adds a string to the document.
    void
    Adds a line break to the document.
     
    void
    writeChar(char value)
     
    void
     
    void
     
  • Method Details

    • add

      void add(char value)
      Adds a character to the document.
      Parameters:
      value - the character to add
    • add

      void add(String value)
      Adds a string to the document.
      Parameters:
      value - the string to be added to the document
    • writeChar

      void writeChar(char value)
    • addLinebreak

      void addLinebreak()
      Adds a line break to the document.
    • writeEof

      void writeEof()
    • writeTab

      void writeTab()
    • getResult

      String getResult()