| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private final void | checkFlushBuffer(final boolean forced)
if it's time to flush data (or if forced==true) calls abstract method flushBuffer() and cleans those bytes from own buffer |
| public final void | close()
Overrides java. Implements java. ByteArrayOutputStream has no effect.
|
| public final void | flush()
Overrides java. Implements java. |
| protected abstract void | |
| public long | |
| public final synchronized void | reset()
Overrides java. count field of this ByteArrayOutputStream
to zero, so that all currently accumulated output in the
output stream is discarded.
|
| public final void | write(final byte[]
the data. b, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this ByteArrayOutputStream.
|
| public final void | write(final byte[]
the data. b)Overrides java. b.length bytes from the specified byte array
to this output stream.
|
| public final void | write(final int
the byte to be written. arg0)Overrides java. ByteArrayOutputStream.
|
| countFlushed | back to summary |
|---|---|
| private long countFlushed | |
| size | back to summary |
|---|---|
| private final int size | |
| ProgressiveOutputStream | back to summary |
|---|---|
| public ProgressiveOutputStream(final int size) | |
| checkFlushBuffer | back to summary |
|---|---|
| private final void checkFlushBuffer(final boolean forced) if it's time to flush data (or if forced==true) calls abstract method flushBuffer() and cleans those bytes from own buffer | |
| close | back to summary |
|---|---|
| public final void close() throws IOException Overrides java. Implements java. Doc from java. Closing a
| |
| flush | back to summary |
|---|---|
| public final void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| flushBuffer | back to summary |
|---|---|
| protected abstract void flushBuffer(byte[] b, int n) | |
| getCountFlushed | back to summary |
|---|---|
| public long getCountFlushed() | |
| reset | back to summary |
|---|---|
| public final synchronized void reset() Overrides java. Doc from java. Resets the
| |
| write | back to summary |
|---|---|
| public final void write(final byte[] b, final int off, final int len) Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public final void write(final byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public final void write(final int arg0) Overrides java. Doc from java. Writes the specified byte to this
| |