org.brains2b.coffee.decode
Interface Encoder

All Known Implementing Classes:
UUDecoder, YencDecoder

public interface Encoder

Interface that defines an Encoder

Version:
1.00 [Aug 14, 2007]
Author:
dennis@brains2b.nl

Method Summary
 java.lang.String encode(java.io.File f, int part, int size)
          Encode part of the file into the appropriate encoding.
 

Method Detail

encode

java.lang.String encode(java.io.File f,
                        int part,
                        int size)
Encode part of the file into the appropriate encoding.

Between (part-1)*size and part*size or File.length() is what will be encoded and returned

Parameters:
f - File, the file to partially encode
part - int, the part of the file to encode starting at 1
size - int, The block size of the parts.
Returns:
String the encoded text in a style appropriate for the encoding