org.freecompany.redline.payload
public class CpioHeader extends Object
| Field Summary | |
|---|---|
| static int | BDEV |
| protected Charset | charset |
| protected int | checksum |
| static int | CDEV |
| protected static int | CPIO_HEADER |
| protected int | devMajor |
| protected int | devMinor |
| static int | DEFAULT_DIRECTORY_PERMISSION |
| static int | DEFAULT_FILE_PERMISSION |
| static int | DIR |
| protected int | filesize |
| protected int | flags |
| static int | FIFO |
| static int | FILE |
| protected int | gid |
| protected String | gname |
| protected int | inode |
| protected long | mtime |
| protected static CharSequence | MAGIC |
| protected String | name |
| protected int | nlink |
| protected int | permissions |
| protected int | rdevMajor |
| protected int | rdevMinor |
| static int | SOCKET |
| static int | SYMLINK |
| protected int | type |
| protected static String | TRAILER |
| protected int | uid |
| protected String | uname |
| Constructor Summary | |
|---|---|
| CpioHeader() | |
| CpioHeader(String name) | |
| CpioHeader(File file) | |
| CpioHeader(String name, File file) | |
| Method Summary | |
|---|---|
| int | getDevMajor() |
| int | getDevMinor() |
| int | getFileSize() |
| int | getFlags() |
| String | getGname() |
| int | getInode() |
| int | getMode() |
| int | getMtime() |
| String | getName() |
| int | getPermissions() |
| int | getRdevMajor() |
| int | getRdevMinor() |
| int | getType() |
| String | getUname() |
| boolean | isLast()
Test to see if this is the last header, and is therefore the end of the
archive. |
| protected String | pad(CharSequence sequence, int length) |
| int | read(ReadableByteChannel channel, int total) |
| protected CharSequence | readChars(CharBuffer buffer, int length) |
| protected int | readEight(CharBuffer buffer) |
| protected CharSequence | readSix(CharBuffer buffer) |
| void | setFileSize(int filesize) |
| void | setFlags(int flags) |
| void | setGname(String gname) |
| void | setInode(int inode) |
| void | setLast() |
| void | setMtime(long mtime) |
| void | setName(String name) |
| void | setPermissions(int permissions) |
| void | setType(int type) |
| void | setUname(String uname) |
| protected int | skip(ReadableByteChannel channel, int total) |
| int | skip(WritableByteChannel channel, int total) |
| String | toString() |
| int | write(WritableByteChannel channel, int total)
Writed the content for the CPIO header, including the name immediately following. |
| protected ByteBuffer | writeEight(int data) |
| protected ByteBuffer | writeSix(CharSequence data) |