Class LaTeXDocumentPortion


  • public class LaTeXDocumentPortion
    extends java.lang.Object
    This class represents a portion of a LaTeX document. A portion is any number of lines, and may include subportions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LaTeXDocumentPortion append​(java.lang.String s)
      Add a string to the end of this portion
      LaTeXDocumentPortion append​(LaTeXDocumentPortion ldp)
      Add another portion to the end of this portion
      LaTeXDocumentPortion nl()
      Add a newline to the end of this portion
      java.lang.String toString()
      Return the content of this LaTeXDocumentStream as a string
      void write​(java.io.OutputStreamWriter osw, int nLineLen, java.lang.String sNewline)
      Write this portion to the output (note: nLineLen=0 means no wrap)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LaTeXDocumentPortion

        public LaTeXDocumentPortion​(boolean bWrap)
    • Method Detail

      • append

        public LaTeXDocumentPortion append​(java.lang.String s)
        Add a string to the end of this portion
      • write

        public void write​(java.io.OutputStreamWriter osw,
                          int nLineLen,
                          java.lang.String sNewline)
                   throws java.io.IOException
        Write this portion to the output (note: nLineLen=0 means no wrap)
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Return the content of this LaTeXDocumentStream as a string
        Overrides:
        toString in class java.lang.Object