writer2latex.latex

Class LaTeXDocumentPortion

public class LaTeXDocumentPortion extends Object

This class represents a portion of a LaTeX document. A portion is any number of lines, and may include subportions.
Constructor Summary
LaTeXDocumentPortion(boolean bWrap)
Method Summary
LaTeXDocumentPortionappend(LaTeXDocumentPortion ldp)
Add another portion to the end of this portion
LaTeXDocumentPortionappend(String s)
Add a string to the end of this portion
LaTeXDocumentPortionnl()
Add a newline to the end of this portion
StringtoString()
Return the content of this LaTeXDocumentStream as a string
voidwrite(OutputStreamWriter osw, int nLineLen, String sNewline)
Write this portion to the output (note: nLineLen=0 means no wrap)

Constructor Detail

LaTeXDocumentPortion

public LaTeXDocumentPortion(boolean bWrap)

Method Detail

append

public LaTeXDocumentPortion append(LaTeXDocumentPortion ldp)
Add another portion to the end of this portion

append

public LaTeXDocumentPortion append(String s)
Add a string to the end of this portion

nl

public LaTeXDocumentPortion nl()
Add a newline to the end of this portion

toString

public String toString()
Return the content of this LaTeXDocumentStream as a string

write

public void write(OutputStreamWriter osw, int nLineLen, String sNewline)
Write this portion to the output (note: nLineLen=0 means no wrap)