|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.brains2b.coffee.decode.UUDecoder
public class UUDecoder
Decoder and Encoder for UUEncoding
| Constructor Summary | |
|---|---|
UUDecoder()
|
|
| Method Summary | |
|---|---|
void |
decodePiece(java.lang.String s)
hand a piece of coded characters to the Decoder |
java.lang.String |
encode(java.io.File f,
int part,
int size)
Encode part of the file into the appropriate encoding. |
FileMessage |
getFileMessage()
get the FileMessage with a reference to
the decoded bytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UUDecoder()
| Method Detail |
|---|
public void decodePiece(java.lang.String s)
throws java.lang.Exception
Decoder
decodePiece in interface Decoders - String, a piece or the complete encoded
characters to decode
java.lang.ExceptionDecoder.getFileMessage()
public FileMessage getFileMessage()
throws java.lang.Exception
DecoderFileMessage with a reference to
the decoded bytes
getFileMessage in interface DecoderFileMessage the reference to the decoded
bytes and possible file information
java.lang.Exception
public java.lang.String encode(java.io.File f,
int part,
int size)
Between (part-1)*size and part*size
or File.length() is what will be encoded and returned
size is adjusted down from the supplied size to be a multiple of 45, so UUEncode will encode whole lines for multi-part message
encode in interface Encoderf - File, the file to partially encodepart - int, the part of the file to encode starting at 1size - int, The block size of the parts.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||