Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
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 © 2000–2016 AO Industries, Inc.. All rights reserved.