|
|||||||||
| Home >> All >> com >> jguild >> jrpm >> io >> [ archive overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.jguild.jrpm.io.archive
Class CPIOPayloadArchive

java.lang.Objectcom.jguild.jrpm.io.archive.CPIOPayloadArchive
- All Implemented Interfaces:
- com.jguild.jrpm.io.PayloadArchive
- public class CPIOPayloadArchive
- extends java.lang.Object
- implements com.jguild.jrpm.io.PayloadArchive
- extends java.lang.Object
Allows to read/write CPIO archives.
| Nested Class Summary | |
class |
CPIOPayloadArchive.CPIOHeaderCRC
|
| Field Summary | |
private byte |
compression
|
private java.io.File |
file
|
private static org.apache.log4j.Logger |
logger
|
private int |
offset
|
static int |
S_IFDIR
|
static int |
S_IFLNK
|
static int |
S_IFMT
|
| Fields inherited from interface com.jguild.jrpm.io.PayloadArchive |
COMPRESSION_GZIP, COMPRESSION_NONE |
| Constructor Summary | |
CPIOPayloadArchive(byte compression,
java.io.File file,
int offset)
Creates a new CPIOPayloadArchive object. |
|
| Method Summary | |
void |
extract(java.io.File basedir)
Extract payload. |
byte |
getCompression()
Get compression type. |
private int |
pad(java.io.DataInputStream is,
int count,
int boundary)
|
void |
setCompression(byte compression)
Set compression type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
logger
private static final org.apache.log4j.Logger logger
S_IFMT
public static final int S_IFMT
- See Also:
- Constant Field Values
S_IFDIR
public static final int S_IFDIR
- See Also:
- Constant Field Values
S_IFLNK
public static final int S_IFLNK
- See Also:
- Constant Field Values
compression
private byte compression
file
private java.io.File file
offset
private int offset
| Constructor Detail |
CPIOPayloadArchive
public CPIOPayloadArchive(byte compression,
java.io.File file,
int offset)
- Creates a new CPIOPayloadArchive object.
| Method Detail |
setCompression
public void setCompression(byte compression)
- Set compression type.
getCompression
public byte getCompression()
- Get compression type.
extract
public void extract(java.io.File basedir) throws java.io.IOException
- Extract payload.
- Specified by:
extractin interfacecom.jguild.jrpm.io.PayloadArchive
pad
private int pad(java.io.DataInputStream is, int count, int boundary) throws java.io.IOException
|
|||||||||
| Home >> All >> com >> jguild >> jrpm >> io >> [ archive overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.jguild.jrpm.io.archive.CPIOPayloadArchive