Top Description Fields
org.apache.commons.compress.archivers.cpio

public Interface CpioConstants

Known Direct Implementers
org.apache.commons.compress.archivers.cpio.CpioArchiveEntry, org.apache.commons.compress.archivers.cpio.CpioArchiveInputStream, org.apache.commons.compress.archivers.cpio.CpioArchiveOutputStream

All constants needed by CPIO. based on code from the jRPM project (jrpm.sourceforge.net) http://www.opengroup.org/onlinepubs/9699919799/basedefs/cpio.h.html has a list of the C_xxx constants.

Field Summary

Modifier and TypeField and Description
public static final int
BLOCK_SIZE

The default block size.

public static final int
C_IRGRP

Permits a file's group to read the file

public static final int
C_IROTH

Permits others to read the file

public static final int
C_IRUSR

Permits the owner of a file to read the file

public static final int
C_ISBLK

Defines a block device

public static final int
C_ISCHR

Defines a character device

public static final int
C_ISDIR

Defines a directory

public static final int
C_ISFIFO

Defines a pipe

public static final int
C_ISGID

Sets group ID

public static final int
C_ISLNK

Defines a symbolic link

public static final int
C_ISNWK

HP/UX network special (C_ISCTG)

public static final int
C_ISREG

Defines a regular file

public static final int
C_ISSOCK

Defines a socket

public static final int
C_ISUID

Sets user ID

public static final int
C_ISVTX

On directories, restricted deletion flag.

public static final int
C_IWGRP

Permits a file's group to write to the file

public static final int
C_IWOTH

Permits others to write to the file

public static final int
C_IWUSR

Permits the owner of a file to write to the file

public static final int
C_IXGRP

Permits a file's group to execute the file or to search the directory

public static final int
C_IXOTH

Permits others to execute the file or to search the directory

public static final int
C_IXUSR

Permits the owner of a file to execute the file or to search the directory

public static final String
CPIO_TRAILER

The special trailer marker

public static final short
FORMAT_NEW

Write/read a CpioArchiveEntry in the new format.

public static final short
FORMAT_NEW_CRC

Write/read a CpioArchiveEntry in the new format with crc.

public static final short
FORMAT_NEW_MASK

Mask for both new formats.

public static final short
FORMAT_OLD_ASCII

Write/read a CpioArchiveEntry in the old ascii format.

public static final short
FORMAT_OLD_BINARY

Write/read a CpioArchiveEntry in the old binary format.

public static final short
FORMAT_OLD_MASK

Mask for both old formats.

public static final String
MAGIC_NEW

Magic number of a cpio entry in the new format

public static final String
MAGIC_NEW_CRC

Magic number of a cpio entry in the new format with crc

public static final String
MAGIC_OLD_ASCII

Magic number of a cpio entry in the old ascii format

public static final int
MAGIC_OLD_BINARY

Magic number of a cpio entry in the old binary format

public static final int
S_IFMT

Mask for all file type bits.

Field Detail

BLOCK_SIZEback to summary
public static final int BLOCK_SIZE

The default block size.

Since
1.1
C_IRGRPback to summary
public static final int C_IRGRP

Permits a file's group to read the file

C_IROTHback to summary
public static final int C_IROTH

Permits others to read the file

C_IRUSRback to summary
public static final int C_IRUSR

Permits the owner of a file to read the file

C_ISBLKback to summary
public static final int C_ISBLK

Defines a block device

C_ISCHRback to summary
public static final int C_ISCHR

Defines a character device

C_ISDIRback to summary
public static final int C_ISDIR

Defines a directory

C_ISFIFOback to summary
public static final int C_ISFIFO

Defines a pipe

C_ISGIDback to summary
public static final int C_ISGID

Sets group ID

C_ISLNKback to summary
public static final int C_ISLNK

Defines a symbolic link

C_ISNWKback to summary
public static final int C_ISNWK

HP/UX network special (C_ISCTG)

C_ISREGback to summary
public static final int C_ISREG

Defines a regular file

C_ISSOCKback to summary
public static final int C_ISSOCK

Defines a socket

C_ISUIDback to summary
public static final int C_ISUID

Sets user ID

C_ISVTXback to summary
public static final int C_ISVTX

On directories, restricted deletion flag.

C_IWGRPback to summary
public static final int C_IWGRP

Permits a file's group to write to the file

C_IWOTHback to summary
public static final int C_IWOTH

Permits others to write to the file

C_IWUSRback to summary
public static final int C_IWUSR

Permits the owner of a file to write to the file

C_IXGRPback to summary
public static final int C_IXGRP

Permits a file's group to execute the file or to search the directory

C_IXOTHback to summary
public static final int C_IXOTH

Permits others to execute the file or to search the directory

C_IXUSRback to summary
public static final int C_IXUSR

Permits the owner of a file to execute the file or to search the directory

CPIO_TRAILERback to summary
public static final String CPIO_TRAILER

The special trailer marker

FORMAT_NEWback to summary
public static final short FORMAT_NEW

Write/read a CpioArchiveEntry in the new format. FORMAT_ constants are internal.

FORMAT_NEW_CRCback to summary
public static final short FORMAT_NEW_CRC

Write/read a CpioArchiveEntry in the new format with crc. FORMAT_ constants are internal.

FORMAT_NEW_MASKback to summary
public static final short FORMAT_NEW_MASK

Mask for both new formats. FORMAT_ constants are internal.

FORMAT_OLD_ASCIIback to summary
public static final short FORMAT_OLD_ASCII

Write/read a CpioArchiveEntry in the old ascii format. FORMAT_ constants are internal.

FORMAT_OLD_BINARYback to summary
public static final short FORMAT_OLD_BINARY

Write/read a CpioArchiveEntry in the old binary format. FORMAT_ constants are internal.

FORMAT_OLD_MASKback to summary
public static final short FORMAT_OLD_MASK

Mask for both old formats. FORMAT_ constants are internal.

MAGIC_NEWback to summary
public static final String MAGIC_NEW

Magic number of a cpio entry in the new format

MAGIC_NEW_CRCback to summary
public static final String MAGIC_NEW_CRC

Magic number of a cpio entry in the new format with crc

MAGIC_OLD_ASCIIback to summary
public static final String MAGIC_OLD_ASCII

Magic number of a cpio entry in the old ascii format

MAGIC_OLD_BINARYback to summary
public static final int MAGIC_OLD_BINARY

Magic number of a cpio entry in the old binary format

S_IFMTback to summary
public static final int S_IFMT

Mask for all file type bits.