public class ByteBufferOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
ByteBufferOutputStream(java.util.ArrayList bufferList,
ClientHandler handler)
Creates a new ByteBufferOutputStream using the given list as its base
and ClientHandler as the target channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEncryptedByteBuffer(java.nio.ByteBuffer buff) |
void |
close() |
boolean |
doShutdown() |
void |
flush() |
void |
forceNotify() |
boolean |
isDataAvailableForWrite(java.lang.Object toNotify) |
static boolean |
isLoggable(java.util.logging.Level level) |
static void |
setDebug(boolean flag)
Sets the debug flag.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
boolean |
writeAllByteBuffer() |
public ByteBufferOutputStream(java.util.ArrayList bufferList,
ClientHandler handler)
public static void setDebug(boolean flag)
true
one can see number of bytes written.public static boolean isLoggable(java.util.logging.Level level)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreampublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic boolean writeAllByteBuffer()
throws java.io.IOException
java.io.IOExceptionpublic void forceNotify()
public boolean isDataAvailableForWrite(java.lang.Object toNotify)
public void addEncryptedByteBuffer(java.nio.ByteBuffer buff)
public boolean doShutdown()
throws java.io.IOException
java.io.IOExceptionCopyright © 2003-2014 QuickServer.org