public final class EncoderOutput extends PrintOutput
Constructor and Description |
---|
EncoderOutput(OutputStream os,
Charset encoding)
Constructor, given an output stream.
|
Modifier and Type | Method and Description |
---|---|
String |
encoding()
Returns the encoding.
|
void |
print(byte[] token)
Prints a token to the output stream.
|
void |
print(int ch)
Prints a single codepoint.
|
void |
print(String string)
Prints a string to the output stream.
|
close, finished, flush, get, println, println, setLimit, size, write
write, write
public EncoderOutput(OutputStream os, Charset encoding)
os
- output stream referenceencoding
- encodingpublic void print(int ch) throws IOException
PrintOutput
print
in class PrintOutput
ch
- codepoint to be printedIOException
- I/O exceptionpublic void print(byte[] token) throws IOException
PrintOutput
print
in class PrintOutput
token
- token to be writtenIOException
- I/O exceptionpublic void print(String string) throws IOException
PrintOutput
print
in class PrintOutput
string
- string to be writtenIOException
- I/O exceptionpublic String encoding()
PrintOutput
encoding
in class PrintOutput
Copyright © 2005–2015 BaseX Team. All rights reserved.