|
Copyright © 2008-2011 Ralph Schuster. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsv.impl.AbstractTableWriter
public abstract class AbstractTableWriter
Abstract implementation of writer interface. The interface provides basic functionality being needed regardless of underlying medium to be written to.
| Constructor Summary | |
|---|---|
AbstractTableWriter()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the writer. |
protected java.lang.String |
convert(java.lang.Object value)
Converts the value to its string representation. |
protected java.lang.String |
convert(java.lang.String type,
java.lang.Object value)
Converts the value to its string representation. |
int |
getRowCount()
Returns the rows written. |
protected TypeConversionHandler |
getTypeConversionHandler(java.lang.String type)
Returns a type conversion handler for the given type. |
protected int |
incrementRowCount()
Increments the row count. |
protected void |
init()
General initialization. |
void |
printComment(java.lang.String comment)
Prints a comment into the output stream. |
void |
printComment(java.lang.String comment,
int row,
int column)
Prints a comment into the output stream. |
void |
registerTypeConversionHandler(TypeConversionHandler handler)
Registers a type conversion handler. |
void |
unregisterTypeConversionHandler(TypeConversionHandler handler)
Unregisters a type conversion handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface csv.TableWriter |
|---|
printRow |
| Constructor Detail |
|---|
public AbstractTableWriter()
| Method Detail |
|---|
protected void init()
public void printComment(java.lang.String comment)
throws java.io.IOException
printComment in interface TableWritercomment - the comment to write
java.io.IOException - when an exception occurs
public void printComment(java.lang.String comment,
int row,
int column)
throws java.io.IOException
printComment in interface TableWritercomment - the comment to writerow - index of row for commentcolumn - index of column for comment
java.io.IOException - when an exception occurspublic void close()
close in interface TableWriterpublic int getRowCount()
protected int incrementRowCount()
public void registerTypeConversionHandler(TypeConversionHandler handler)
handler - handler to registerpublic void unregisterTypeConversionHandler(TypeConversionHandler handler)
handler - handler to unregisterprotected TypeConversionHandler getTypeConversionHandler(java.lang.String type)
type - type to get a handler for
protected java.lang.String convert(java.lang.Object value)
value - object
protected java.lang.String convert(java.lang.String type,
java.lang.Object value)
type - type of object being returnedvalue - object
|
Copyright © 2008-2011 Ralph Schuster. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||