org.w3c.tidy
Class OutJavaImpl

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

public class OutJavaImpl
extends java.lang.Object
implements Out

Output implementation using java writers.

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

Constructor Summary
protected OutJavaImpl(Configuration configuration, java.lang.String encoding, java.io.OutputStream out)
          Constructor.
protected OutJavaImpl(Configuration configuration, java.io.Writer out)
          Constructor.
 
Method Summary
 void flush()
          Flush 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

protected 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.

OutJavaImpl

protected OutJavaImpl(Configuration configuration,
                      java.io.Writer out)
Constructor.

Parameters:
configuration - actual configuration instance (needed for newline configuration)
out - Writer
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()

flush

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

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


Copyright © 2000-2006 sourceforge. All Rights Reserved.