us.zuercher.gpx2map.source
Interface Converter

All Known Implementing Classes:
JavaConverter

public interface Converter

Converter is an interface describing a mechanism for converting image files or arbitrary encoding into compressed PPM files.

Author:
Stephan Zuercher

Method Summary
 void convert(File imageFile, File compressedPpmFile)
          Convert the given image file to a compressed portable pixmap (PPM) file.
 String getCompressedFileExtension()
          Return the canonical extension for files compressed with this Converter.
 

Method Detail

convert

void convert(File imageFile,
             File compressedPpmFile)
             throws IOException
Convert the given image file to a compressed portable pixmap (PPM) file. Implementations must support GIF and JPEG images. Implementations must compress using gzip compression.

Parameters:
imageFile - downloaded image file
compressedPpmFile - location of gzipped, PPM file
Throws:
IOException - if there is an error converting or compressing the file

getCompressedFileExtension

String getCompressedFileExtension()
Return the canonical extension for files compressed with this Converter.

Returns:
the canonical extension for files compressed with this Converter.