public class ChunkedOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
ChunkedOutputStream(java.io.OutputStream pStream,
int pBufferLength)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(byte[] source,
int offset,
int len) |
void |
write(int i) |
public ChunkedOutputStream(java.io.OutputStream pStream, int pBufferLength)
pStream
- The stream to create this one uponpBufferLength
- The buffer length. When this value is exceeded a new chunk
will be started.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
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(byte[] source, int offset, int len) throws java.io.IOException
write
in class java.io.OutputStream
offset
- java.io.IOException
public void write(int i) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.