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, setWordAttributeNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOutputFileEncoding, getOutputFileName, outputWordAndAdornments, outputWordAndAdornments, setWordAttributeNames
protected 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 AdornedWordOutputter
createOutputFile
in class PrintStreamAdornedWordOutputter
fileName
- Output file name (stored, not used).encoding
- Encoding for the output file.separatorCharacter
- Separator character for output.java.io.IOException
public byte[] getBytes()
public void close()
close
in interface AdornedWordOutputter
close
in class PrintStreamAdornedWordOutputter