|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer org.ajax4jsf.io.FastBufferWriter
public class FastBufferWriter
Class for writing to chain of char arrays extending Writer.
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
FastBufferWriter()
Creates instance of default initial capacity. |
|
FastBufferWriter(CharBuffer firstBuffer)
Creates instance for an already existing chain of char arrays. |
|
FastBufferWriter(int initialSize)
Creates instance with required initial capacity. |
Method Summary | |
---|---|
void |
close()
|
FastBufferOutputStream |
convertToOutputStream()
Returns instance of FastBufferOutputStream containing all data written to this writer. |
FastBufferOutputStream |
convertToOutputStream(String encoding)
Returns instance of FastBufferOutputStream containing all data written to this writer. |
void |
flush()
|
CharBuffer |
getFirstBuffer()
Returns the first link of the chain of char arrays. |
int |
getLength()
Returns the total number of written chars. |
void |
printTo(javax.servlet.ServletOutputStream outputStream)
|
void |
reset()
Resets writer to empty state |
char[] |
toCharArray()
Writes all data written up to the moment to string buffer. |
void |
write(char[] cbuf)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int c)
|
void |
writeTo(Writer writer)
Writes all data written up to the moment to out. |
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 |
Constructor Detail |
---|
public FastBufferWriter()
public FastBufferWriter(CharBuffer firstBuffer)
firstBuffer
- public FastBufferWriter(int initialSize)
initialSize
- Method Detail |
---|
public void write(int c) throws IOException
write
in class Writer
IOException
java.io.Writer.write(int c)
public void write(char[] cbuf) throws IOException
write
in class Writer
IOException
java.io.Writer.write(char cbuf[])
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
java.io.Writer.write(char cbuf[], int off, int len)
public int getLength()
public CharBuffer getFirstBuffer()
public void close() throws IOException
close
in interface Closeable
close
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public char[] toCharArray()
out
-
IOException
public void writeTo(Writer writer) throws IOException
out
-
IOException
public void printTo(javax.servlet.ServletOutputStream outputStream) throws IOException
IOException
public FastBufferOutputStream convertToOutputStream(String encoding) throws UnsupportedEncodingException
encoding
-
UnsupportedEncodingException
public FastBufferOutputStream convertToOutputStream()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |