public class LaTeXDocumentPortion
extends java.lang.Object
Constructor and Description |
---|
LaTeXDocumentPortion(boolean bWrap)
Construct a new empty
LaTeXDocumentPortion |
Modifier and Type | Method and Description |
---|---|
LaTeXDocumentPortion |
append(int n)
Add an integer to the end of this portion
|
LaTeXDocumentPortion |
append(LaTeXDocumentPortion ldp)
Add another portion to the end of this portion
|
LaTeXDocumentPortion |
append(java.lang.String s)
Add a string 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 LaTeXDocumentPortion as a string
|
void |
write(java.io.OutputStreamWriter osw,
int nLineLen,
java.lang.String sNewline)
Write this portion to the output
|
public LaTeXDocumentPortion(boolean bWrap)
LaTeXDocumentPortion
bWrap
- set to true if lines may be wrapped on writingpublic LaTeXDocumentPortion append(LaTeXDocumentPortion ldp)
ldp
- The LaTeXDocuemtPortion
to addLaTeXDocumentPortion
(not the appended one)public LaTeXDocumentPortion append(java.lang.String s)
s
- the string to addLaTeXDocumentPortion
public LaTeXDocumentPortion append(int n)
n
- the integer to addLaTeXDocumentPortion
public LaTeXDocumentPortion nl()
LaTeXDocumentPortion
public void write(java.io.OutputStreamWriter osw, int nLineLen, java.lang.String sNewline) throws java.io.IOException
osw
- an OutputStreamWriter
to write tonLineLen
- the line length after which automatic line breaks should occur if allowed (nLineLen=0 means no wrap)sNewline
- the newline character(s) to usejava.io.IOException
- if an exception occurs writing to to oswpublic java.lang.String toString()
toString
in class java.lang.Object
LaTeXDocumentPortion