public class ByteStreamAdornedWordOutputter extends PrintStreamAdornedWordOutputter implements AdornedWordOutputter
| Modifier and Type | Field and Description |
|---|---|
protected java.io.ByteArrayOutputStream |
byteArrayOutputStream
Byte array output stream.
|
fileEncoding, fileName, printStream, separatorCharacter, wordAttributeNames| Constructor and Description |
|---|
ByteStreamAdornedWordOutputter()
Create byte stream outputter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close outputter.
|
void |
createOutputFile(java.lang.String fileName,
java.lang.String encoding,
char separatorCharacter)
Create output file.
|
byte[] |
getBytes()
Get byte array from output stream.
|
getOutputFileEncoding, getOutputFileName, outputWordAndAdornments, outputWordAndAdornments, setWordAttributeNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputFileEncoding, getOutputFileName, outputWordAndAdornments, outputWordAndAdornments, setWordAttributeNamesprotected java.io.ByteArrayOutputStream byteArrayOutputStream
public ByteStreamAdornedWordOutputter()
public void createOutputFile(java.lang.String fileName,
java.lang.String encoding,
char separatorCharacter)
throws java.io.IOException
createOutputFile in interface AdornedWordOutputtercreateOutputFile in class PrintStreamAdornedWordOutputterfileName - Output file name (stored, not used).encoding - Encoding for the output file.separatorCharacter - Separator character for output.java.io.IOExceptionpublic byte[] getBytes()
public void close()
close in interface AdornedWordOutputterclose in class PrintStreamAdornedWordOutputter