public class Base64OutputStream
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
private java.io.OutputStream |
outputStream
Stream where write
|
private int |
previous
Previous value
|
private int |
step
current step
|
private static int |
STEP_1
First step
|
private static int |
STEP_2
Second step
|
private static int |
STEP_3
Third step
|
Constructor and Description |
---|
Base64OutputStream(java.io.OutputStream outputStream)
Create a new instance of Base64OutputStream
|
private static final int STEP_1
private static final int STEP_2
private static final int STEP_3
private java.io.OutputStream outputStream
private int previous
private int step
public Base64OutputStream(java.io.OutputStream outputStream)
outputStream
- Stream where writepublic 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
- On closing issueOutputStream.close()
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
- On flushing issueOutputStream.flush()
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- Byte to writejava.io.IOException
- On writing issueOutputStream.write(int)