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

Constructor Index

 o UTF8PrintStream(OutputStream)
Creates a new UTF8PrintStream.
 o UTF8PrintStream(OutputStream, boolean)
Creates a new UTF8PrintStream, with auto flushing.

Method Index

 o print(char)
Write a character in UTF8 encoding.
 o print(char[])
Prints an array of characters.
 o print(String)
Prints a String.

Constructors

 o UTF8PrintStream
 public UTF8PrintStream(OutputStream out)
Creates a new UTF8PrintStream.

Parameters:
out - the output stream
 o 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

Methods

 o print
 public synchronized void print(String s)
Prints a String.

Parameters:
s - the String to be printed
Overrides:
print in class PrintStream
 o 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
 o 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