|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.io.AbstractWriter
public abstract class AbstractWriter
Abstract base class for Table writers.
Constructor Summary | |
---|---|
AbstractWriter(OutputStream out,
String name,
Table table)
Constructor for AbstractWriter |
Method Summary | |
---|---|
void |
addAllColumnLabels()
Adds the name of all the non-internal Columns to the list of written columns. |
void |
addColumnLabel(String name)
Adds the name of a Column to write to the list of written column. |
void |
flush()
|
String |
getColumnLabelAt(int col)
Returns the name of the column to write at a specified index. |
ArrayList |
getColumnLabels()
Returns the ArrayList of column names to write. |
String |
getEncoding()
|
String |
getName()
|
OutputStream |
getOut()
|
BufferedWriter |
getWriter()
|
static String |
namedType(Column col)
Returns a type name from a column. |
void |
setEncoding(String encoding)
|
abstract boolean |
write()
Abstract method that performs the actual writing of data. |
void |
write(char c)
Write one character in the output writer. |
void |
write(String s)
Write a string in the output writer. |
void |
writeBuffer()
Write the StringBuffer in the output writer and clears it. |
void |
writeln()
Write a newline in the ouput writer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractWriter(OutputStream out, String name, Table table)
out
- the Writertable
- the Table.Method Detail |
---|
public String getName()
public static String namedType(Column col)
col
- the column
public void addColumnLabel(String name)
name
- the Column name.public void addAllColumnLabels()
public String getColumnLabelAt(int col)
col
- the index.
public ArrayList getColumnLabels()
public OutputStream getOut()
public BufferedWriter getWriter()
public final void write(char c) throws IOException
c
- the character.
IOException
public final void write(String s) throws IOException
s
- the string.
IOException
public void writeBuffer() throws IOException
IOException
public void writeln() throws IOException
IOException
public void flush() throws IOException
IOException
public abstract boolean write()
public String getEncoding()
public void setEncoding(String encoding)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |