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) |
write
protected 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 Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
protected void finalize() throws Throwable
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
Copyright © 1999–2019 ViaOA. All rights reserved.