org.w3c.tidy
Class OutJavaImpl

java.lang.Object
  extended byorg.w3c.tidy.OutJavaImpl
All Implemented Interfaces:
Out

public class OutJavaImpl
extends java.lang.Object
implements Out

Output implementation using java writers.

Version:
$Revision: 1.4 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Constructor Summary
OutJavaImpl(Configuration configuration, java.lang.String encoding, java.io.OutputStream out)
          Constructor.
 
Method Summary
 void close()
          Flush and close the stream.
 void newline()
          writes a newline.
 void outc(byte c)
          writes a byte.
 void outc(int c)
          writes an char.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutJavaImpl

public OutJavaImpl(Configuration configuration,
                   java.lang.String encoding,
                   java.io.OutputStream out)
            throws java.io.UnsupportedEncodingException
Constructor.

Parameters:
configuration - actual configuration instance (needed for newline configuration)
encoding - encoding name
out - output stream
Throws:
java.io.UnsupportedEncodingException - if the undelining OutputStreamWriter doesn't support the rquested encoding.
Method Detail

outc

public void outc(int c)
Description copied from interface: Out
writes an char.

Specified by:
outc in interface Out
Parameters:
c - char to write
See Also:
Out.outc(int)

outc

public void outc(byte c)
Description copied from interface: Out
writes a byte.

Specified by:
outc in interface Out
Parameters:
c - byte to write
See Also:
Out.outc(byte)

newline

public void newline()
Description copied from interface: Out
writes a newline.

Specified by:
newline in interface Out
See Also:
Out.newline()

close

public void close()
Description copied from interface: Out
Flush and close the stream.

Specified by:
close in interface Out
See Also:
Out.close()


Copyright © 2000-2005 sourceforge. All Rights Reserved.