java.lang.Object
kala.compress.java.util.jar.Pack200
Class factory for
Pack200.Packer and Pack200.Unpacker.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe interface defining the API for converting a JAR file to an output stream in the Pack200 format.static interfaceThe interface defining the API for converting a packed stream in the Pack200 format to a JAR file. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ObjectnewInstance(String systemProperty, String defaultClassName) static Pack200.PackerReturns a new instance of a packer engine.static Pack200.UnpackerReturns a new instance of an unpacker engine.
-
Field Details
-
SYSTEM_PROPERTY_PACKER
System property key.- See Also:
-
SYSTEM_PROPERTY_UNPACKER
System property key.- See Also:
-
-
Constructor Details
-
Pack200
private Pack200()Prevents this class from being instantiated.
-
-
Method Details
-
newInstance
-
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
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.
-