org.openjena.atlas.io
Class IndentedLineBuffer

java.lang.Object
  extended by org.openjena.atlas.io.IndentedWriter
      extended by 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.


Field Summary
 
Fields inherited from class org.openjena.atlas.io.IndentedWriter
stderr, stdout
 
Constructor Summary
IndentedLineBuffer()
           
IndentedLineBuffer(boolean withLineNumbers)
           
 
Method Summary
 void append(char ch)
           
 void append(String fmt, Object... args)
           
 String asString()
           
 void clear()
           
 StringBuffer getBuffer()
           
 String toString()
           
 
Methods inherited from class org.openjena.atlas.io.IndentedWriter
atLineStart, close, decIndent, decIndent, ensureStartOfLine, flush, getCol, getCurrentOffset, getEndOfLineMarker, getIndent, getPadChar, getPadString, getRow, getUnitIndent, hasLineNumbers, incIndent, incIndent, inFlatMode, newline, pad, pad, pad, print, print, print, print, printf, println, println, println, setAbsoluteIndent, setEndOfLineMarker, setFlatMode, setLineNumbers, setPadChar, setPadString, setUnitIndent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndentedLineBuffer

public IndentedLineBuffer()

IndentedLineBuffer

public IndentedLineBuffer(boolean withLineNumbers)
Method Detail

getBuffer

public StringBuffer getBuffer()

asString

public String asString()

toString

public String toString()
Overrides:
toString in class Object

append

public void append(String fmt,
                   Object... args)

append

public void append(char ch)

clear

public void clear()


Licenced under the Apache License, Version 2.0