public class RemoteBufferedOutputStream extends FilterOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bOwnedBuffer |
protected byte[] |
bsBuffer |
protected int |
count |
out| Constructor and Description |
|---|
RemoteBufferedOutputStream(OutputStream out)
Creates a new buffered output stream to write data to the specified underlying output stream with
the specified buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
void |
flush()
Overwritten to include freeing the byte[] buffer from the shared pool.
|
protected byte[] |
getBuffer() |
protected static byte[] |
getPoolBuffer() |
protected static void |
releasePoolBuffer(byte[] bs) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writeprotected byte[] bsBuffer
protected int count
protected boolean bOwnedBuffer
public RemoteBufferedOutputStream(OutputStream out)
protected static byte[] getPoolBuffer()
protected static void releasePoolBuffer(byte[] bs)
protected byte[] getBuffer()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionprotected void finalize()
throws Throwable
public void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionCopyright © 1999–2025 ViaOA. All rights reserved.