|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.compress.PackableObject
public abstract class PackableObject
Abstract super object for Compressor and Archiver classes.
| Field Summary | |
|---|---|
protected static int |
CHOOSE_EXTENSION
|
protected static int |
CHOOSE_NAME
|
| Constructor Summary | |
|---|---|
PackableObject()
|
|
| Method Summary | |
|---|---|
abstract String |
getDefaultFileExtension()
Returns the default FileExtension for this archive, for example "zip", "tar"... |
abstract byte[] |
getHeader()
Header byte array for this archive. |
abstract String |
getName()
Returns the ArchiveName for this archive. |
static PackableObject |
identifyByHeader(File file,
List packables)
Compares a file to a list of packables and identifies an object by header. |
protected boolean |
isPackableWith(Object value,
int choose)
String Chooser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int CHOOSE_EXTENSION
protected static final int CHOOSE_NAME
| Constructor Detail |
|---|
public PackableObject()
| Method Detail |
|---|
public abstract byte[] getHeader()
public abstract String getDefaultFileExtension()
public abstract String getName()
protected boolean isPackableWith(Object value,
int choose)
value - choose -
public static PackableObject identifyByHeader(File file,
List packables)
throws IOException
file - the file to identifypackables - a list of packables
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||