com.liferay.portal.kernel.io
Class Base64OutputStream
java.lang.Object
java.io.OutputStream
com.liferay.portal.kernel.io.Base64OutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class Base64OutputStream
- extends java.io.OutputStream
View Source
- Author:
- Tina Tian
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(java.io.OutputStream outputStream)
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.OutputStream
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] bytes)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] bytes,
int offset,
int length)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(int byteValue)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
encodeUnit
protected void encodeUnit(byte byteValue)
throws java.io.IOException
- Throws:
java.io.IOException
encodeUnit
protected void encodeUnit(byte byte1,
byte byte2)
throws java.io.IOException
- Throws:
java.io.IOException
encodeUnit
protected void encodeUnit(byte byte1,
byte byte2,
byte byte3)
throws java.io.IOException
- Throws:
java.io.IOException
getChar
protected char getChar(int sixbit)