- java.lang.Object
-
- kala.compress.java.util.jar.Pack200
-
public abstract class Pack200 extends java.lang.ObjectClass factory forPack200.PackerandPack200.Unpacker.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePack200.PackerThe interface defining the API for converting a JAR file to an output stream in the Pack200 format.static interfacePack200.UnpackerThe interface defining the API for converting a packed stream in the Pack200 format to a JAR file.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringSYSTEM_PROPERTY_PACKERSystem property key.private static java.lang.StringSYSTEM_PROPERTY_UNPACKERSystem property key.
-
Constructor Summary
Constructors Modifier Constructor Description privatePack200()Prevents this class from being instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.ObjectnewInstance(java.lang.String systemProperty, java.lang.String defaultClassName)static Pack200.PackernewPacker()Returns a new instance of a packer engine.static Pack200.UnpackernewUnpacker()Returns a new instance of an unpacker engine.
-
-
-
Field Detail
-
SYSTEM_PROPERTY_PACKER
private static final java.lang.String SYSTEM_PROPERTY_PACKER
System property key.- See Also:
- Constant Field Values
-
SYSTEM_PROPERTY_UNPACKER
private static final java.lang.String SYSTEM_PROPERTY_UNPACKER
System property key.- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
static java.lang.Object newInstance(java.lang.String systemProperty, java.lang.String defaultClassName)
-
newPacker
public static Pack200.Packer newPacker()
Returns a new instance of a packer engine.The implementation of the packer engine is defined by the system property
'java.util.jar.Pack200.Packer'. If this system property is defined an instance of the specified class is returned, otherwise the system's default implementation is returned.- Returns:
- an instance of
Packer
-
newUnpacker
public static Pack200.Unpacker newUnpacker()
Returns a new instance of an unpacker engine.The implementation of the unpacker engine is defined by the system property
Pack200.Unpacker. If this system property is defined an instance of the specified class is returned, otherwise the system's default implementation is returned.- Returns:
- an instance of
Pack200.Unpacker.
-
-