org.apache.geronimo.mail.util
Class UUEncoder
java.lang.Object
org.apache.geronimo.mail.util.UUEncoder
- All Implemented Interfaces:
- Encoder
public class UUEncoder
- extends Object
- implements Encoder
Method Summary |
int |
decode(byte[] data,
int off,
int length,
OutputStream out)
decode the uuencoded byte data writing it to the given output stream |
int |
decode(String data,
OutputStream out)
decode the UUEncoded String data writing it to the given output stream. |
int |
encode(byte[] data,
int off,
int length,
OutputStream out)
encode the input data producing a UUEncoded output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UUEncoder
public UUEncoder()
encode
public int encode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
- encode the input data producing a UUEncoded output stream.
- Specified by:
encode
in interface Encoder
- Parameters:
data
- The array of byte data.off
- The starting offset within the data.length
- Length of the data to encode.out
- The output stream the encoded data is written to.
- Returns:
- the number of bytes produced.
- Throws:
IOException
decode
public int decode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
- decode the uuencoded byte data writing it to the given output stream
- Specified by:
decode
in interface Encoder
- Parameters:
data
- The array of byte data to decode.off
- Starting offset within the array.length
- The length of data to encode.out
- The output stream used to return the decoded data.
- Returns:
- the number of bytes produced.
- Throws:
IOException
decode
public int decode(String data,
OutputStream out)
throws IOException
- decode the UUEncoded String data writing it to the given output stream.
- Specified by:
decode
in interface Encoder
- Parameters:
data
- The String data to decode.out
- The output stream to write the decoded data to.
- Returns:
- the number of bytes produced.
- Throws:
IOException
Copyright © 2006 Apache Software Foundation. All Rights Reserved.