public class PaddingOutputStream extends FilterOutputStream
finish.out| Constructor and Description |
|---|
PaddingOutputStream(OutputStream out,
int blockSize,
byte padding) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Pads, flushes, and closes the underlying stream.
|
void |
finish()
Pads and flushes without closing the underlying stream.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flushpublic PaddingOutputStream(OutputStream out, int blockSize, byte padding)
public void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void finish()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2016. All rights reserved.