org.openstreetmap.osmosis.core.xml.common
Class CompressionMethodDeriver

java.lang.Object
  extended by org.openstreetmap.osmosis.core.xml.common.CompressionMethodDeriver

public class CompressionMethodDeriver
extends java.lang.Object

A utility class for deriving the appropriate compression method based on the file extension.

Author:
Brett Henderson

Constructor Summary
CompressionMethodDeriver()
           
 
Method Summary
 CompressionMethod deriveCompressionMethod(java.lang.String fileName)
          Determines the appropriate compression method for a file based upon the file extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressionMethodDeriver

public CompressionMethodDeriver()
Method Detail

deriveCompressionMethod

public CompressionMethod deriveCompressionMethod(java.lang.String fileName)
Determines the appropriate compression method for a file based upon the file extension.

Parameters:
fileName - The name of the file.
Returns:
The compression method.