|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
org.androidpn.server.xmpp.net.IoBufferWriter
public class IoBufferWriter
Wrapper on a MINA IoBuffer
that extends the Writer class.
Constructor Summary | |
---|---|
IoBufferWriter(org.apache.mina.core.buffer.IoBuffer ioBuffer,
java.nio.charset.CharsetEncoder encoder)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the stream, flushing it first. |
void |
flush()
Flushes the stream. |
void |
write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters. |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IoBufferWriter(org.apache.mina.core.buffer.IoBuffer ioBuffer, java.nio.charset.CharsetEncoder encoder)
ioBuffer
- the IoBufferencoder
- the charset encoderMethod Detail |
---|
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
cbuf
- Array of charactersoff
- Offset from which to start writing characterslen
- Number of characters to write
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 void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |