org.openjena.atlas.io
Class IndentedLineBuffer
java.lang.Object
org.openjena.atlas.io.IndentedWriter
org.openjena.atlas.io.IndentedLineBuffer
public class IndentedLineBuffer
- extends IndentedWriter
IndentLineBuffer is a buffer that records an indent level
and uses that to insert a prefix at each line.
It can also insert line numbers at the beginning of lines.
Also, Java 1.5, StringBuilding is fatser than StringBuffer (not sync'ed)
so could switch to that (exxept we are really using a StringWriter)
- Author:
- Andy Seaborne
| Methods inherited from class org.openjena.atlas.io.IndentedWriter |
atLineStart, close, decIndent, decIndent, ensureStartOfLine, flush, getCol, getCurrentOffset, getIndent, getPadChar, getPadString, getRow, getUnitIndent, hasLineNumbers, incIndent, incIndent, inFlatMode, newline, pad, pad, pad, print, print, print, print, printf, println, println, println, setAbsoluteIndent, setFlatMode, setLineNumbers, setPadChar, setPadString, setUnitIndent |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IndentedLineBuffer
public IndentedLineBuffer()
IndentedLineBuffer
public IndentedLineBuffer(boolean withLineNumbers)
getBuffer
public java.lang.StringBuffer getBuffer()
asString
public java.lang.String asString()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
append
public void append(java.lang.String fmt,
java.lang.Object... args)
append
public void append(char ch)
clear
public void clear()
Copyright © 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP