|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.w3c.tidy.OutImpl
Output implementation. This implementation is from the c version of tidy and it doesn't take advantage of java writers.
Field Summary | |
private int |
encoding
output encoding. |
private byte[] |
newline
newline bytes. |
private java.io.OutputStream |
out
output stream. |
private EncodingUtils.PutBytes |
putBytes
putter callback. |
private int |
state
actual state for ISO 2022. |
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. |
(package private) void |
outcUTF8Bytes(byte[] buf,
int[] count)
output UTF-8 bytes to output stream. |
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 |
Field Detail |
private int encoding
private int state
private java.io.OutputStream out
private EncodingUtils.PutBytes putBytes
private byte[] newline
Constructor Detail |
public OutImpl(Configuration configuration, int encoding, java.io.OutputStream out)
configuration
- actual configuration instance (needed for newline configuration)encoding
- encoding constantout
- output streamMethod Detail |
void outcUTF8Bytes(byte[] buf, int[] count)
buf
- array of bytescount
- number of bytes in buf to writepublic void outc(byte c)
outc
in interface Out
c
- byte to writeOut.outc(byte)
public void outc(int c)
Out
outc
in interface Out
c
- char to writeOut.outc(int)
public void newline()
Out
newline
in interface Out
Out.newline()
public void setOut(java.io.OutputStream out)
out
.
out
- The out to set.public void outBOM()
public void close()
Out
close
in interface Out
Out.close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |