public class ContentBufferOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected long |
beginIndex |
protected ContentBuffer |
contentBuffer |
protected long |
endIndexExclusive |
protected Lock |
lock |
protected long |
pointer |
| Constructor and Description |
|---|
ContentBufferOutputStream(ContentBuffer buffer) |
ContentBufferOutputStream(ContentBuffer buffer,
long beginIndex) |
ContentBufferOutputStream(ContentBuffer buffer,
long beginIndex,
long endIndexExclusive) |
ContentBufferOutputStream(ContentBuffer buffer,
long beginIndex,
long endIndexExclusive,
Lock lock) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected Lock lock
protected ContentBuffer contentBuffer
protected long beginIndex
protected long endIndexExclusive
protected long pointer
public ContentBufferOutputStream(ContentBuffer buffer, long beginIndex, long endIndexExclusive, Lock lock)
public ContentBufferOutputStream(ContentBuffer buffer, long beginIndex, long endIndexExclusive)
public ContentBufferOutputStream(ContentBuffer buffer, long beginIndex)
public ContentBufferOutputStream(ContentBuffer buffer)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2018. All rights reserved.