com.liferay.portal.kernel.io
Class Base64OutputStream
java.lang.Object
java.io.OutputStream
com.liferay.portal.kernel.io.Base64OutputStream
- All Implemented Interfaces:
- Closeable, Flushable, AutoCloseable
public class Base64OutputStream
- extends OutputStream
|
Method Summary |
void |
close()
|
protected void |
encodeUnit(byte byteValue)
|
protected void |
encodeUnit(byte byte1,
byte byte2)
|
protected void |
encodeUnit(byte byte1,
byte byte2,
byte byte3)
|
void |
flush()
|
protected char |
getChar(int sixbit)
|
void |
write(byte[] bytes)
|
void |
write(byte[] bytes,
int offset,
int length)
|
void |
write(int byteValue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64OutputStream
public Base64OutputStream(OutputStream outputStream)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface AutoCloseable- Overrides:
close in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException
write
public void write(byte[] bytes)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] bytes,
int offset,
int length)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(int byteValue)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
encodeUnit
protected void encodeUnit(byte byteValue)
throws IOException
- Throws:
IOException
encodeUnit
protected void encodeUnit(byte byte1,
byte byte2)
throws IOException
- Throws:
IOException
encodeUnit
protected void encodeUnit(byte byte1,
byte byte2,
byte byte3)
throws IOException
- Throws:
IOException
getChar
protected char getChar(int sixbit)