uk.org.retep.util.io.tar
Enum TarFormat

java.lang.Object
  extended by java.lang.Enum<TarFormat>
      extended by uk.org.retep.util.io.tar.TarFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TarFormat>

public enum TarFormat
extends java.lang.Enum<TarFormat>

Author:
peter

Enum Constant Summary
GNU
           
USTAR
          POSIX ustar format
 
Field Summary
static int HEADER_OFFSET
          The offset in the TarHeader of this field
 
Method Summary
 java.lang.String getType()
           
 void put(java.nio.ByteBuffer buffer)
           
static TarFormat valueOf(java.nio.ByteBuffer buffer)
          Read the TarFormat from the ByteBuffer, moving the position to after the value
static TarFormat valueOf(java.nio.ByteBuffer buffer, int offset)
          Read the TarFormat from the ByteBuffer using the supplied position in that buffer.
static TarFormat valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TarFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USTAR

public static final TarFormat USTAR
POSIX ustar format


GNU

public static final TarFormat GNU
Field Detail

HEADER_OFFSET

public static final int HEADER_OFFSET
The offset in the TarHeader of this field

See Also:
Constant Field Values
Method Detail

values

public static TarFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TarFormat c : TarFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TarFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getType

public java.lang.String getType()

put

public void put(java.nio.ByteBuffer buffer)

valueOf

public static TarFormat valueOf(java.nio.ByteBuffer buffer)
Read the TarFormat from the ByteBuffer, moving the position to after the value

Parameters:
buffer -
Returns:

valueOf

public static TarFormat valueOf(java.nio.ByteBuffer buffer,
                                int offset)
Read the TarFormat from the ByteBuffer using the supplied position in that buffer. The state of the buffer remains unchanged.

Parameters:
buffer -
offset -
Returns:


Copyright © 1998-2010 Retep Development Group. All Rights Reserved.