Class Printer

  • Direct Known Subclasses:
    IndentPrinter

    @Deprecated(since="2021-09-01")
    public class Printer
    extends Object
    Deprecated.
    Util Classes related to Xerces are removed in subsequent releases causing a major version change. As these utils are for internal use in Filevault the API is getting deprecated from public API surface.
    The printer is responsible for sending text to the output stream or writer. This class performs direct writing for efficiency. IndentPrinter supports indentation and line wrapping by extending this class.
    • Method Detail

      • getException

        public IOException getException()
        Deprecated.
      • enterDTD

        public void enterDTD()
                      throws IOException
        Deprecated.
        Called by any of the DTD handlers to enter DTD mode. Once entered, all output will be accumulated in a string that can be printed as part of the document's DTD. This method may be called any number of time but will only have affect the first time it's called. To exist DTD state and get the accumulated DTD, call leaveDTD().
        Throws:
        IOException
      • leaveDTD

        public String leaveDTD()
                        throws IOException
        Deprecated.
        Called by the root element to leave DTD mode and if any DTD parts were printer, will return a string with their textual content.
        Throws:
        IOException
      • printText

        public void printText​(char[] chars,
                              int start,
                              int length)
                       throws IOException
        Deprecated.
        Throws:
        IOException
      • breakLine

        public void breakLine​(boolean preserveSpace)
                       throws IOException
        Deprecated.
        Throws:
        IOException
      • flushLine

        public void flushLine​(boolean preserveSpace)
                       throws IOException
        Deprecated.
        Throws:
        IOException
      • flush

        public void flush()
                   throws IOException
        Deprecated.
        Flush the output stream. Must be called when done printing the document, otherwise some text might be buffered.
        Throws:
        IOException
      • indent

        public void indent()
        Deprecated.
      • unindent

        public void unindent()
        Deprecated.
      • getNextIndent

        public int getNextIndent()
        Deprecated.
      • setNextIndent

        public void setNextIndent​(int indent)
        Deprecated.
      • setThisIndent

        public void setThisIndent​(int indent)
        Deprecated.