All Packages Class Hierarchy This Package Previous Next Index
Class w3c.xmlOnline.parser.UTF8PrintStream
java.lang.Object
|
+----java.io.OutputStream
|
+----java.io.FilterOutputStream
|
+----java.io.PrintStream
|
+----w3c.xmlOnline.parser.UTF8PrintStream
- public class UTF8PrintStream
- extends PrintStream
A PrintStream that outputs text in UTF8 encoding. This
is not actually used by the XML-online parser, but may be
useful in order to generate XML.
This should probably be updated to use the Writer
classes from JDK 1.1...
- Version:
- $Id: w3c.xmlOnline.parser.UTF8PrintStream.html,v 1.7 1997/06/09 22:25:05 bbos Exp $
- Author:
- Bert Bos
-
UTF8PrintStream(OutputStream)
- Creates a new UTF8PrintStream.
-
UTF8PrintStream(OutputStream, boolean)
- Creates a new UTF8PrintStream, with auto flushing.
-
print(char)
- Write a character in UTF8 encoding.
-
print(char[])
- Prints an array of characters.
-
print(String)
- Prints a String.
UTF8PrintStream
public UTF8PrintStream(OutputStream out)
- Creates a new UTF8PrintStream.
- Parameters:
- out - the output stream
UTF8PrintStream
public UTF8PrintStream(OutputStream out,
boolean autoflush)
- Creates a new UTF8PrintStream, with auto flushing.
- Parameters:
- out - the output stream
- autoflush - if true the stream automatically flushes
its output when a newline character is printed
print
public synchronized void print(String s)
- Prints a String.
- Parameters:
- s - the String to be printed
- Overrides:
- print in class PrintStream
print
public synchronized void print(char s[])
- Prints an array of characters.
- Parameters:
- s - the array of chars to be printed
- Overrides:
- print in class PrintStream
print
public void print(char c)
- Write a character in UTF8 encoding.
- Overrides:
- print in class PrintStream
All Packages Class Hierarchy This Package Previous Next Index