|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
net.ranides.assira.io.IndentWriter
public class IndentWriter
Writer, który dodaje do Writera dodatkową funkcjonalność ułatwiającą generowanie tekstu z wcięciami. Wcięcia mogą być zagnieżdżane. Uwaga: writer współpracuje z unixowymi znakami nowej linii, nie zachowuje się w sposób zależny od platformy.
| Constructor Summary | |
|---|---|
IndentWriter(Appendable delegator)
Tworzy nowy writer generujący wynik do podanego delegatora. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
int |
getIndentation()
Zwraca głębokość wcięcia. |
void |
indent()
Zwiększa wcięcie tekstu o jeden poziom. |
void |
outdent()
Zmniejsza wcięcie tekstu o jeden poziom. |
void |
setIndentation(int indentation)
Ustawia poziom wcięcia tekstu na konkretną wartość. |
void |
write(char[] cbuf)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int chr)
|
void |
write(String str)
|
void |
write(String str,
int off,
int len)
|
| Methods inherited from class java.io.Writer |
|---|
append, append, append |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndentWriter(Appendable delegator)
delegator - | Method Detail |
|---|
public void indent()
public void outdent()
public int getIndentation()
public void setIndentation(int indentation)
indentation -
public void close()
throws IOException
close in interface Closeableclose in class WriterIOException
public void flush()
throws IOException
flush in interface Flushableflush in class WriterIOException
public void write(char[] cbuf)
throws IOException
write in class WriterIOException
public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOException
public void write(String str)
throws IOException
write in class WriterIOException
public void write(String str,
int off,
int len)
throws IOException
write in class WriterIOException
public void write(int chr)
throws IOException
write in class WriterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||