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.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public boolean writeAllByteBuffer() throws java.io.IOException
java.io.IOException
public 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.IOException
Copyright © 2003-2014 QuickServer.org