public class EncodedPrintStream extends PrintStream
PrintStream to specify an encoding.
This functionality is provided out of the box by the Java 1.4 version of PrintStream.
This class is strictly for backwards compatibility.
out| Constructor and Description |
|---|
EncodedPrintStream(OutputStream out,
boolean autoFlush,
String encoding)
Constructor allows specifying a character encoding.
|
EncodedPrintStream(OutputStream out,
String encoding)
Constructor allows specifying a character encoding.
|
| Modifier and Type | Method and Description |
|---|---|
void |
print(char c) |
void |
print(char[] s) |
void |
print(String s) |
void |
println(char x) |
void |
println(char[] x) |
void |
println(String x) |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, setError, write, writewritepublic EncodedPrintStream(OutputStream out, String encoding) throws UnsupportedEncodingException
Does not automatically flush the underlying output stream.
out - The underlying output stream.encoding - String representation of a character encoding.UnsupportedEncodingException - If the character encoding is not supported by the JVM.public EncodedPrintStream(OutputStream out, boolean autoFlush, String encoding) throws UnsupportedEncodingException
out - The underlying output stream.autoFlush - See PrintStream()encoding - String representation of a character encoding.UnsupportedEncodingException - If the character encoding is not supported by the JVM.public void print(char c)
print in class PrintStreampublic void print(char[] s)
print in class PrintStreampublic void print(String s)
print in class PrintStreampublic void println(char x)
println in class PrintStreampublic void println(char[] x)
println in class PrintStreampublic void println(String x)
println in class PrintStreamCopyright © 2018. All rights reserved.