To use Uuencode for encoding binary data into uuencode format, set the file name, file mode, and binary data string using the member functions setFileName(), setFileMode(), and setBinaryChars(). Then call the member function encode(). Finally, retrieve the uuencoded text characters by calling asciiChars().
To use Uuencode to decode uuencoded data, set the ASCII characters using the member function setAsciiChars(), then call decode(). Finally, retrieve the file name, file mode, and binary characters by calling fileName(), fileMode(), and binaryChars().
Public Member Functions | |
| Uuencode () | |
| Default constructor. | |
| virtual | ~Uuencode () |
| Destructor. | |
| void | setFileName (const char *name) |
| Sets the file name. | |
| const char * | fileName () const |
| Gets the file name. | |
| void | setFileMode (uint16_t mode) |
| Sets the file mode. | |
| uint16_t | fileMode () const |
| Gets the file mode. | |
| void | setBinaryChars (const String &bytes) |
| Sets the binary file content. | |
| const String & | binaryChars () const |
| Gets the binary file content. | |
| void | setAsciiChars (const String &chars) |
| Sets the encoded characters. | |
| const String & | asciiChars () const |
| Gets the encoded characters. | |
| void | encode () |
| Performs the encode operation. | |
| int | decode () |
| Performs the decode operation. | |
|
|
Default constructor |
|
|
Destructor |
|
|
Gets the encoded characters.
|
|
|
Gets the binary file content
|
|
|
Extracts the file name, file mode, and binary data from the ASCII characters via a uudecode operation.
|
|
|
Creates an ASCII string of characters by uuencoding the file name, file mode, and binary data. |
|
|
Gets the file mode.
|
|
|
Gets the file name. The implementation limits the file name to 255 characters.
|
|
|
Sets the encoded characters.
|
|
|
Sets the binary file content.
|
|
|
Sets the file mode. If the file mode is not explicitly set using this member function, a default value of 0644 (octal) is assumed.
|
|
|
Sets the file name. The implementation limits the file name to 255 characters.
|
Copyright © 2001-2007 Hunny Software, Inc. All rights reserved.