public final class ConsoleSarWriter extends AbstractSarWriter
indent, nullRepresentation, stack
Constructor and Description |
---|
ConsoleSarWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
pop()
Return up one level.
|
void |
push(String table,
String label,
String comment)
Recurse tables deeper.
|
void |
setTask(String task) |
void |
write(String colname,
String label,
String comment,
String value)
Output attribute.
|
String |
writeColumn(String column,
String label,
String comment,
String value)
Output the column element.
|
String |
writeRoot(String inner)
Write root element.
|
String |
writeTable(String table,
String label,
String comment,
String columns,
String inner)
Output the table element.
|
clear, escape, escape, escapeJson, escapeXml, id, indentBlock, init, setIndentation, setNullRepresentation, toString, wrapColumns, wrapInner, wrapTables
getEncoding, write, write, write
public void setTask(String task)
public String writeTable(String table, String label, String comment, String columns, String inner)
ISarWriter
table
- namelabel
- optional infocomment
- optional infocolumns
- columnsinner
- children datapublic String writeColumn(String column, String label, String comment, String value)
ISarWriter
column
- namelabel
- optional infocomment
- optional infovalue
- valuepublic String writeRoot(String inner)
ISarWriter
inner
- stringpublic void write(String colname, String label, String comment, String value)
ISarWriter
write
in interface ISarWriter
write
in class AbstractSarWriter
colname
- column namelabel
- optional labelcomment
- optional commentvalue
- value to writepublic void push(String table, String label, String comment)
ISarWriter
push
in interface ISarWriter
push
in class AbstractSarWriter
table
- table namelabel
- optional labelcomment
- optional commentpublic void pop()
ISarWriter
pop
in interface ISarWriter
pop
in class AbstractSarWriter
public void flush() throws IOException
flush
in interface Flushable
flush
in class AbstractSarWriter
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractSarWriter
Copyright © 2021. All rights reserved.