|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
org.apache.xml.serializer.WriterToASCI
class WriterToASCI
This class writes ASCII to a byte stream as quickly as possible. For the moment it does not do buffering, though I reserve the right to do some buffering down the line if I can prove that it will be faster even if the output stream is buffered. This class is only used internally within Xalan.
| Field Summary | |
|---|---|
private java.io.OutputStream |
m_os
The byte stream to write to. |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
WriterToASCI(java.io.OutputStream os)
Create an unbuffered ASCII writer. |
|
| Method Summary | |
|---|---|
void |
close()
Close the stream, flushing it first. |
void |
flush()
Flush the stream. |
java.io.OutputStream |
getOutputStream()
Get the output stream where the events will be serialized to. |
java.io.Writer |
getWriter()
Get the writer that this writer directly chains to. |
void |
write(char[] chars,
int start,
int length)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(java.lang.String s)
Write a string. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xml.serializer.WriterChain |
|---|
write, write |
| Field Detail |
|---|
private final java.io.OutputStream m_os
| Constructor Detail |
|---|
public WriterToASCI(java.io.OutputStream os)
os - The byte stream to write to.| Method Detail |
|---|
public void write(char[] chars,
int start,
int length)
throws java.io.IOException
write in interface WriterChainwrite in class java.io.Writerchars - Array of charactersstart - Offset from which to start writing characterslength - Number of characters to write
java.io.IOException - If an I/O error occurs
java.io.IOException
public void write(int c)
throws java.io.IOException
Subclasses that intend to support efficient single-character output should override this method.
write in interface WriterChainwrite in class java.io.Writerc - int specifying a character to be written.
java.io.IOException - If an I/O error occurs
public void write(java.lang.String s)
throws java.io.IOException
write in interface WriterChainwrite in class java.io.Writers - String to be written
java.io.IOException - If an I/O error occurs
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in interface WriterChainflush in class java.io.Writerjava.io.IOException - If an I/O error occurs
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface WriterChainclose in class java.io.Writerjava.io.IOException - If an I/O error occurspublic java.io.OutputStream getOutputStream()
getOutputStream in interface WriterChainpublic java.io.Writer getWriter()
getWriter in interface WriterChain
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||