|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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(java.lang.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(java.io.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(int initialSize)
initialSize
- public FastBufferWriter(CharBuffer firstBuffer)
firstBuffer
- Method Detail |
---|
public void write(int c) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
java.io.Writer.write(int c)
public void write(char[] cbuf) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
java.io.Writer.write(char cbuf[])
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
java.io.Writer.write(char cbuf[], int off, int len)
public int getLength()
public CharBuffer getFirstBuffer()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public char[] toCharArray()
out
-
java.io.IOException
public void writeTo(java.io.Writer writer) throws java.io.IOException
out
-
java.io.IOException
public void printTo(javax.servlet.ServletOutputStream outputStream) throws java.io.IOException
java.io.IOException
public FastBufferOutputStream convertToOutputStream(java.lang.String encoding) throws java.io.UnsupportedEncodingException
encoding
-
java.io.UnsupportedEncodingException
public FastBufferOutputStream convertToOutputStream()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |