public class EncodedPrintStream
extends java.io.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.
Constructor and Description |
---|
EncodedPrintStream(java.io.OutputStream out,
boolean autoFlush,
java.lang.String encoding)
Constructor allows specifying a character encoding.
|
EncodedPrintStream(java.io.OutputStream out,
java.lang.String encoding)
Constructor allows specifying a character encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
print(char c) |
void |
print(char[] s) |
void |
print(java.lang.String s) |
void |
println(char x) |
void |
println(char[] x) |
void |
println(java.lang.String x) |
public EncodedPrintStream(java.io.OutputStream out, java.lang.String encoding) throws java.io.UnsupportedEncodingException
Does not automatically flush the underlying output stream.
out
- The underlying output stream.encoding
- String representation of a character encoding.java.io.UnsupportedEncodingException
- If the character encoding is not supported by the JVM.public EncodedPrintStream(java.io.OutputStream out, boolean autoFlush, java.lang.String encoding) throws java.io.UnsupportedEncodingException
out
- The underlying output stream.autoFlush
- See PrintStream()
encoding
- String representation of a character encoding.java.io.UnsupportedEncodingException
- If the character encoding is not supported by the JVM.public void print(char c)
print
in class java.io.PrintStream
public void print(char[] s)
print
in class java.io.PrintStream
public void print(java.lang.String s)
print
in class java.io.PrintStream
public void println(char x)
println
in class java.io.PrintStream
public void println(char[] x)
println
in class java.io.PrintStream
public void println(java.lang.String x)
println
in class java.io.PrintStream
Copyright © 2013. All Rights Reserved.