com.twelvemonkeys.io.enc
Class Base64Encoder
java.lang.Object
com.twelvemonkeys.io.enc.Base64Encoder
- All Implemented Interfaces:
- Encoder
public class Base64Encoder
- extends Object
- implements Encoder
Encoder implementation for standard base64 encoding.
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/io/enc/Base64Encoder.java#2 $
- Author:
- Harald Kuhr
- See Also:
- RFC 1421,
,
Base64Decoder
|
Method Summary |
void |
encode(OutputStream stream,
ByteBuffer buffer)
Encodes up to buffer.remaining() bytes into the given input stream,
from the given buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64Encoder
public Base64Encoder()
encode
public void encode(OutputStream stream,
ByteBuffer buffer)
throws IOException
- Description copied from interface:
Encoder
- Encodes up to
buffer.remaining() bytes into the given input stream,
from the given buffer.
- Specified by:
encode in interface Encoder
- Parameters:
stream - the output stream to encode data tobuffer - buffer to read data from
- Throws:
IOException - if an I/O error occurs
Copyright © 2015. All Rights Reserved.