Package com.twelvemonkeys.io.enc
Class Base64Encoder
java.lang.Object
com.twelvemonkeys.io.enc.Base64Encoder
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream stream, ByteBuffer buffer) Encodes up tobuffer.remaining()
bytes into the given input stream, from the given buffer.
-
Constructor Details
-
Base64Encoder
public Base64Encoder()
-
-
Method Details
-
encode
Description copied from interface:Encoder
Encodes up tobuffer.remaining()
bytes into the given input stream, from the given buffer.- Specified by:
encode
in interfaceEncoder
- Parameters:
stream
- the output stream to encode data tobuffer
- buffer to read data from- Throws:
IOException
- if an I/O error occurs
-