|
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
csv.impl.AbstractStreamTableWriter
public abstract class AbstractStreamTableWriter
An abstract implementation of TableWriter. This implementation is dedicated for I/O streams as underlying medium.
| Constructor Summary | |
|---|---|
AbstractStreamTableWriter()
Default Constructor. |
|
AbstractStreamTableWriter(java.io.File file)
Create a new instance from a file object. |
|
AbstractStreamTableWriter(java.io.OutputStream out)
Create a new instance from an existing OutputStream. |
|
AbstractStreamTableWriter(java.lang.String file)
Create a new instance froma file name. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the writer and its underlying streams. |
java.io.OutputStream |
getOutputStream()
Returns the underlying output stream |
java.io.PrintWriter |
getWriter()
Returns a writer object for convinience. |
void |
setOutputStream(java.io.OutputStream out)
Sets the underlying stream. |
| Methods inherited from class csv.impl.AbstractTableWriter |
|---|
convert, convert, getRowCount, getTypeConversionHandler, incrementRowCount, init, printComment, printComment, registerTypeConversionHandler, unregisterTypeConversionHandler |
| 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 AbstractStreamTableWriter()
public AbstractStreamTableWriter(java.io.OutputStream out)
out - - the stream to write to.
public AbstractStreamTableWriter(java.io.File file)
throws java.io.IOException
file - - file to write data to.
java.io.IOException - - when the file could not be created
public AbstractStreamTableWriter(java.lang.String file)
throws java.io.IOException
file - - file to write data to.
java.io.IOException - - when the file could not be created| Method Detail |
|---|
public void setOutputStream(java.io.OutputStream out)
out - the output stream to be usedpublic java.io.PrintWriter getWriter()
public java.io.OutputStream getOutputStream()
public void close()
close in interface TableWriterclose in class AbstractTableWriter
|
Copyright © 2008-2011 Ralph Schuster. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||