Class CompressionMethodDeriver
java.lang.Object
org.openstreetmap.osmosis.xml.common.CompressionMethodDeriver
A utility class for deriving the appropriate compression method based on the
file extension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionderiveCompressionMethod(String fileName) Determines the appropriate compression method for a file based upon the file extension.
-
Constructor Details
-
CompressionMethodDeriver
public CompressionMethodDeriver()
-
-
Method Details
-
deriveCompressionMethod
Determines the appropriate compression method for a file based upon the file extension.- Parameters:
fileName- The name of the file.- Returns:
- The compression method.
-