public class SimpleWriterExporterOutput extends Object implements WriterExporterOutput
PROPERTY_CHARACTER_ENCODING| Constructor and Description |
|---|
SimpleWriterExporterOutput(File file)
Creates a
WriterExporterOutput instance that puts the result into the provided java.io.File object. |
SimpleWriterExporterOutput(File file,
String encoding) |
SimpleWriterExporterOutput(OutputStream outputStream)
Creates a
WriterExporterOutput instance that puts the result into provided java.io.OutputStream object. |
SimpleWriterExporterOutput(OutputStream outputStream,
String encoding) |
SimpleWriterExporterOutput(String fileName)
Creates a
WriterExporterOutput instance that puts the result into the file designated by the provided file name. |
SimpleWriterExporterOutput(StringBuffer sbuffer)
Creates a
WriterExporterOutput instance which stores its result into the provided string buffer. |
SimpleWriterExporterOutput(StringBuilder sbuilder)
Creates a
WriterExporterOutput instance which stores its result into the provided string builder. |
SimpleWriterExporterOutput(String fileName,
String encoding) |
SimpleWriterExporterOutput(Writer writer)
Creates a
WriterExporterOutput instance that puts the result into the provided java.io.Writer object. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getEncoding()
The character encoding used for export.
|
Writer |
getWriter() |
public SimpleWriterExporterOutput(StringBuffer sbuffer)
WriterExporterOutput instance which stores its result into the provided string buffer.
Useful for just storing the result in a string for later use.public SimpleWriterExporterOutput(StringBuilder sbuilder)
WriterExporterOutput instance which stores its result into the provided string builder.
Useful for just storing the result in a string for later use.public SimpleWriterExporterOutput(Writer writer)
WriterExporterOutput instance that puts the result into the provided java.io.Writer object.
This is useful for sending the export result to a character stream, such as the PrintWriter of a servlet.public SimpleWriterExporterOutput(OutputStream outputStream)
WriterExporterOutput instance that puts the result into provided java.io.OutputStream object.
This is useful for sending the export result to an output stream, such as a ServletOutputStream.public SimpleWriterExporterOutput(OutputStream outputStream, String encoding)
public SimpleWriterExporterOutput(File file)
WriterExporterOutput instance that puts the result into the provided java.io.File object.
This is useful when exporting to a file and the File instance is already there.public SimpleWriterExporterOutput(String fileName)
WriterExporterOutput instance that puts the result into the file designated by the provided file name.
This is an alternative to the SimpleWriterExporterOutput(File).public String getEncoding()
getEncoding in interface WriterExporterOutputWriterExporterOutput.PROPERTY_CHARACTER_ENCODINGpublic Writer getWriter()
getWriter in interface WriterExporterOutputpublic void close()
close in interface WriterExporterOutputCopyright © 2017. All rights reserved.