org.ajax4jsf.org.w3c.tidy
Class OutJavaImpl

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

public class OutJavaImpl
extends java.lang.Object
implements Out

Output implementation using java writers.

Version:
$Revision: 1.1.2.1 $ ($Author: alexsmirnov $)
Author:
Fabrizio Giustina

Constructor Summary
OutJavaImpl(Configuration configuration, java.lang.String encoding, java.io.OutputStream out)
          Constructor.
OutJavaImpl(Configuration config, java.lang.String outCharEncodingName, java.io.Writer out)
           
 
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.

OutJavaImpl

public OutJavaImpl(Configuration config,
                   java.lang.String outCharEncodingName,
                   java.io.Writer out)
Method Detail

outc

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

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

outc

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

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

newline

public void newline()
             throws java.io.IOException
Description copied from interface: Out
writes a newline.

Specified by:
newline in interface Out
Throws:
java.io.IOException
See Also:
Out.newline()

close

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

Specified by:
close in interface Out
Throws:
java.io.IOException
See Also:
Out.close()


Copyright © 2010. All Rights Reserved.