|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.github.libxjava.io.ByteArrayBuffer.Writer
public final class ByteArrayBuffer.Writer
| Constructor Summary | |
|---|---|
ByteArrayBuffer.Writer()
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
Same as markComplete(). |
void |
markComplete()
Notifies the buffer that the current chunk of data is complete. |
void |
markIncomplete()
Notifies the buffer that the current chunk is incomplete and should be discarded. |
int |
space()
Returns the remaing space in the buffer. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int v)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayBuffer.Writer()
| Method Detail |
|---|
public int space()
public void close()
close in interface Closeableclose in class OutputStreampublic void flush()
markComplete().
flush in interface Flushableflush in class OutputStream
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOException
public void write(byte[] b)
throws IOException
write in class OutputStreamIOException
public void write(int v)
throws IOException
write in class OutputStreamIOExceptionpublic void markComplete()
public void markIncomplete()
IOException in a subsequent call to one
of the read methods (ByteArrayBuffer.Reader.read(), ByteArrayBuffer.Reader.read(byte[]),
ByteArrayBuffer.Reader.read(byte[], int, int)).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||