Modifier and Type | Field and Description |
---|---|
protected static final int | |
private static final int | |
private static final int | |
private String | |
private OutputStream |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | encode(InputStream
the input stream. is, OutputStream the output stream. out)UUEncode bytes from the input stream, and write them as text characters to the output stream. |
private void | |
private void | |
private void | encodeLine(byte[]
The array of byte data. data, int The starting offset within the data. offset, int Length of the data to encode. length, OutputStream The output stream the encoded data is written to. out)Encode a single line of data (less than or equal to 45 characters). |
private void |
DEFAULT_MODE | back to summary |
---|---|
protected static final int DEFAULT_MODE |
INPUT_BUFFER_SIZE | back to summary |
---|---|
private static final int INPUT_BUFFER_SIZE |
MAX_CHARS_PER_LINE | back to summary |
---|---|
private static final int MAX_CHARS_PER_LINE |
name | back to summary |
---|---|
private String name |
out | back to summary |
---|---|
private OutputStream out |
UUEncoder | back to summary |
---|---|
public UUEncoder(String name) Constructor specifying a name for the encoded buffer, begin line will be: begin 644 [NAME]
|
encode | back to summary |
---|---|
public void encode(InputStream is, OutputStream out) throws IOException UUEncode bytes from the input stream, and write them as text characters to the output stream. This method will run until it exhausts the input stream.
|
encodeBegin | back to summary |
---|---|
private void encodeBegin() |
encodeEnd | back to summary |
---|---|
private void encodeEnd() |
encodeLine | back to summary |
---|---|
private void encodeLine(byte[] data, int offset, int length, OutputStream out) throws IOException Encode a single line of data (less than or equal to 45 characters).
|
encodeString | back to summary |
---|---|
private void encodeString(String n) Encode a string to the output. |