org.ajax4jsf.org.w3c.tidy
Class OutImpl

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

public class OutImpl
extends java.lang.Object
implements Out

Output implementation. This implementation is from the c version of tidy and it doesn't take advantage of java writers.

Version:
$Revision: 1.1.2.1 $ ($Author: alexsmirnov $)
Author:
Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina

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

Constructor Detail

OutImpl

public OutImpl(Configuration configuration,
               int encoding,
               java.io.OutputStream out)
Constructor.

Parameters:
configuration - actual configuration instance (needed for newline configuration)
encoding - encoding constant
out - output stream
Method Detail

outc

public void outc(byte c)
.

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

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)

newline

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

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

setOut

public void setOut(java.io.OutputStream out)
Setter for out.

Parameters:
out - The out to set.

outBOM

public void outBOM()
Output a Byte Order Mark.


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 © 2009. All Rights Reserved.