class FileBackedMimeEncoder extends MimeEncoderImpl<File, File> {

  @Override
  public AdaptrisMessage readMessage(File source) throws CoreException {
    try {
      AdaptrisMessage msg = currentMessageFactory().newMessage();
      MultiPartFileInput input = new MultiPartFileInput(source);
      addPartsToMessage(input, msg);
      return msg;
    } catch (Exception e) {
      throw ExceptionHelper.wrapCoreException(e);
    }
  }

  public  FileBackedMimeEncoder();

}