Top Description Fields Constructors Methods
org.hsqldb.lib.tar

public final Enum TarHeaderField

extends Enum<TarHeaderField>
Class Inheritance
Annotations
@SuppressWarnings:boxing

Purely static structure defining our interface to the Tar Entry Header. The fields controlled here are fields for the individual tar file entries in an archive. There is no such thing as a Header Field at the top archive level.

We use header field names as they are specified in the FreeBSD man page for tar in section 5 (Solaris and Linux have no such page in section 5). Where we use a constant, the constant name is just the FreeBSD field name capitalized. Since a single field is known as either "linkflag" or "typeflag", we are going with the UStar name typeflag for this field.

We purposefully define no variable for this list of fields, since we DO NOT WANT TO access or change these values, due to application goals or JVM limitations:

Our application has no use for these, or Java has no ability to work with them.

This class will be very elegant when refactored as an enum with enumMap(s) and using generics with auto-boxing instead of the ugly and non-validating casts.

Author
Blaine Simpson (blaine dot simpson at admc dot com)

Field Summary

Modifier and TypeField and Description
public static final TarHeaderField
public static final TarHeaderField
public static final TarHeaderField
public static final TarHeaderField
public static final TarHeaderField
public static final TarHeaderField
public static final TarHeaderField
public static final TarHeaderField
public static final TarHeaderField
private final int
private final int
public static final TarHeaderField
public static final TarHeaderField
public static final TarHeaderField

Constructor Summary

AccessConstructor and Description
private
TarHeaderField(int start, int stop)

Method Summary

Modifier and TypeMethod and Description
public int
public int
public static TarHeaderField
public static TarHeaderField[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

checksumback to summary
public static final TarHeaderField checksum
gidback to summary
public static final TarHeaderField gid
gnameback to summary
public static final TarHeaderField gname
magicback to summary
public static final TarHeaderField magic
modeback to summary
public static final TarHeaderField mode
mtimeback to summary
public static final TarHeaderField mtime
nameback to summary
public static final TarHeaderField name

Hides java.lang.Enum.name.

prefixback to summary
public static final TarHeaderField prefix
sizeback to summary
public static final TarHeaderField size
startback to summary
private final int start
stopback to summary
private final int stop
typeflagback to summary
public static final TarHeaderField typeflag
uidback to summary
public static final TarHeaderField uid
unameback to summary
public static final TarHeaderField uname

Constructor Detail

TarHeaderFieldback to summary
private TarHeaderField(int start, int stop)

Method Detail

getStartback to summary
public int getStart()
getStopback to summary
public int getStop()
valueOfback to summary
public static TarHeaderField valueOf(String name)
valuesback to summary
public static TarHeaderField[] values()