org.media.mn8.util.tar
Class TarHeader
java.lang.Object
|
+--org.media.mn8.util.tar.TarHeader
- public class TarHeader
- extends Object
- Version:
- $Revision: 1.1 $ $Date: 2002/02/27 19:07:34 $
- Author:
- Szabo Csaba
Method Summary |
static int |
getCheckSumOctalBytes(long value,
byte[] buf,
int offset,
int length)
|
static int |
getLongOctalBytes(long value,
byte[] buf,
int offset,
int length)
|
static int |
getNameBytes(StringBuffer _name,
byte[] buf,
int offset,
int length)
|
static int |
getOctalBytes(long value,
byte[] buf,
int offset,
int length)
|
static StringBuffer |
parseName(byte[] header,
int offset,
int length)
|
static long |
parseOctal(byte[] header,
int offset,
int length)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMELEN
public static final int NAMELEN
- See Also:
- Constant Field Values
MODELEN
public static final int MODELEN
- See Also:
- Constant Field Values
UIDLEN
public static final int UIDLEN
- See Also:
- Constant Field Values
GIDLEN
public static final int GIDLEN
- See Also:
- Constant Field Values
CHKSUMLEN
public static final int CHKSUMLEN
- See Also:
- Constant Field Values
SIZELEN
public static final int SIZELEN
- See Also:
- Constant Field Values
MAGICLEN
public static final int MAGICLEN
- See Also:
- Constant Field Values
MODTIMELEN
public static final int MODTIMELEN
- See Also:
- Constant Field Values
UNAMELEN
public static final int UNAMELEN
- See Also:
- Constant Field Values
GNAMELEN
public static final int GNAMELEN
- See Also:
- Constant Field Values
DEVLEN
public static final int DEVLEN
- See Also:
- Constant Field Values
LF_OLDNORM
public static final byte LF_OLDNORM
- LF_ constants represent the "link flag" of an entry, or more commonly,
the "entry type". This is the "old way" of indicating a normal file.
- See Also:
- Constant Field Values
LF_NORMAL
public static final byte LF_NORMAL
- See Also:
- Constant Field Values
LF_LINK
public static final byte LF_LINK
- See Also:
- Constant Field Values
LF_SYMLINK
public static final byte LF_SYMLINK
- See Also:
- Constant Field Values
LF_CHR
public static final byte LF_CHR
- See Also:
- Constant Field Values
LF_BLK
public static final byte LF_BLK
- See Also:
- Constant Field Values
LF_DIR
public static final byte LF_DIR
- See Also:
- Constant Field Values
LF_FIFO
public static final byte LF_FIFO
- See Also:
- Constant Field Values
LF_CONTIG
public static final byte LF_CONTIG
- See Also:
- Constant Field Values
TMAGIC
public static final String TMAGIC
- See Also:
- Constant Field Values
GNU_TMAGIC
public static final String GNU_TMAGIC
- See Also:
- Constant Field Values
name
public StringBuffer name
mode
public int mode
userId
public int userId
groupId
public int groupId
size
public long size
modTime
public long modTime
checkSum
public int checkSum
linkFlag
public byte linkFlag
linkName
public StringBuffer linkName
magic
public StringBuffer magic
userName
public StringBuffer userName
groupName
public StringBuffer groupName
devMajor
public int devMajor
devMinor
public int devMinor
TarHeader
public TarHeader()
parseName
public static StringBuffer parseName(byte[] header,
int offset,
int length)
throws Exception
Exception
parseOctal
public static long parseOctal(byte[] header,
int offset,
int length)
throws Exception
Exception
getNameBytes
public static int getNameBytes(StringBuffer _name,
byte[] buf,
int offset,
int length)
getOctalBytes
public static int getOctalBytes(long value,
byte[] buf,
int offset,
int length)
getLongOctalBytes
public static int getLongOctalBytes(long value,
byte[] buf,
int offset,
int length)
getCheckSumOctalBytes
public static int getCheckSumOctalBytes(long value,
byte[] buf,
int offset,
int length)
"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."