Package org.apache.hadoop.io.compress.zlib
Enum Class BuiltInGzipDecompressor.GzipStateLabel
java.lang.Object
java.lang.Enum<BuiltInGzipDecompressor.GzipStateLabel>
org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor.GzipStateLabel
- All Implemented Interfaces:
Serializable,Comparable<BuiltInGzipDecompressor.GzipStateLabel>,Constable
- Enclosing class:
- org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor
public static enum BuiltInGzipDecompressor.GzipStateLabel
extends Enum<BuiltInGzipDecompressor.GzipStateLabel>
The current state of the gzip decoder, external to the Inflater context.
(Technically, the private variables localBuf through hasHeaderCRC are
also part of the state, so this enum is merely the label for it.)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionImmediately prior to or within the main compressed (deflate) data stream.Immediately after end() has been called.Immediately after the trailer (and potentially prior to the next gzip member/substream header), without reset() having been called.Immediately prior to or (strictly) within the 10-byte basic gzip header.Immediately prior to or within the optional comment field.Immediately prior to or within the optional 2-byte header CRC value.Immediately prior to or within the optional "extra field."Immediately prior to or within the optional filename field.Immediately prior to or within the main uncompressed (inflate) data stream.Immediately prior to or (strictly) within the 4-byte uncompressed CRC.Immediately prior to or (strictly) within the 4-byte uncompressed size. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEADER_BASIC
Immediately prior to or (strictly) within the 10-byte basic gzip header. -
HEADER_EXTRA_FIELD
Immediately prior to or within the optional "extra field." -
HEADER_FILENAME
Immediately prior to or within the optional filename field. -
HEADER_COMMENT
Immediately prior to or within the optional comment field. -
HEADER_CRC
Immediately prior to or within the optional 2-byte header CRC value. -
DEFLATE_STREAM
Immediately prior to or within the main compressed (deflate) data stream. -
INFLATE_STREAM
Immediately prior to or within the main uncompressed (inflate) data stream. -
TRAILER_CRC
Immediately prior to or (strictly) within the 4-byte uncompressed CRC. -
TRAILER_SIZE
Immediately prior to or (strictly) within the 4-byte uncompressed size. -
FINISHED
Immediately after the trailer (and potentially prior to the next gzip member/substream header), without reset() having been called. -
ENDED
Immediately after end() has been called.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-