|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.bouncycastle.util.io.BufferingOutputStream
public class BufferingOutputStream
An output stream that buffers data to be feed into an encapsulated output stream.
The stream zeroes out the internal buffer on each flush.
| Constructor Summary | |
|---|---|
BufferingOutputStream(java.io.OutputStream other)
Create a buffering stream with the default buffer size (4096). |
|
BufferingOutputStream(java.io.OutputStream other,
int bufferSize)
Create a buffering stream with a specified buffer size. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
Flush the internal buffer to the encapsulated output stream. |
void |
write(byte[] bytes,
int offset,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferingOutputStream(java.io.OutputStream other)
other - output stream to be wrapped.
public BufferingOutputStream(java.io.OutputStream other,
int bufferSize)
other - output stream to be wrapped.bufferSize - size in bytes for internal buffer.| Method Detail |
|---|
public void write(byte[] bytes,
int offset,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - on error.
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||