org.at4j.zip.comp
Class DeflatedCompressionMethodFactory

java.lang.Object
  extended by org.at4j.zip.comp.DeflatedCompressionMethodFactory
All Implemented Interfaces:
ZipEntryCompressionMethodFactory

public class DeflatedCompressionMethodFactory
extends Object
implements ZipEntryCompressionMethodFactory

This factory creates DeflatedCompressionMethod objects.

Since:
1.0
Author:
Karl Gustafsson

Field Summary
static DeflatedCompressionMethodFactory INSTANCE
           
 
Constructor Summary
DeflatedCompressionMethodFactory()
           
 
Method Summary
 DeflatedCompressionMethod create(ZipGeneralPurposeBitFlags gpBitFlags)
          Create a compression method instance.
 UnsignedShort getCode()
          Get the unique code identifying this compression method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DeflatedCompressionMethodFactory INSTANCE
Constructor Detail

DeflatedCompressionMethodFactory

public DeflatedCompressionMethodFactory()
Method Detail

getCode

public UnsignedShort getCode()
Description copied from interface: ZipEntryCompressionMethodFactory
Get the unique code identifying this compression method.

Specified by:
getCode in interface ZipEntryCompressionMethodFactory
Returns:
The unique code identifying this compression method.

create

public DeflatedCompressionMethod create(ZipGeneralPurposeBitFlags gpBitFlags)
Description copied from interface: ZipEntryCompressionMethodFactory
Create a compression method instance.

Specified by:
create in interface ZipEntryCompressionMethodFactory
Parameters:
gpBitFlags - The Zip entry's general purpose bit flags. They may contain compression algorithm parameters.
Returns:
The Zip entry compression method.