- All Implemented Interfaces:
Serializable, Comparable<GunzipOutputStream.HeaderState>, java.lang.constant.Constable
- Enclosing class:
GunzipOutputStream
State of the gzip header parse.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompression format byte expected.Comment field, ends at a NUL.First header CRC byte.Second header CRC byte.Header complete, compressed data follows.Extended flags byte expected.Low byte of the extra header length.High byte of the extra header length.Extra header body bytes.Header flags byte, saved for later fields.First magic byte expected.Second magic byte expected.First modification time byte, ignored.Second modification time byte, ignored.Third modification time byte, ignored.Fourth modification time byte, ignored.File name field, ends at a NUL.Operating system byte, ignored.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static GunzipOutputStream.HeaderState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
MB1
First magic byte expected.MB2
Second magic byte expected.CF
Compression format byte expected.MT0
First modification time byte, ignored.MT1
Second modification time byte, ignored.MT2
Third modification time byte, ignored.MT3
Fourth modification time byte, ignored.EF
Extended flags byte expected.OS
Operating system byte, ignored.FLAGS
Header flags byte, saved for later fields.EH1
Low byte of the extra header length.EH2
High byte of the extra header length.EHDATA
Extra header body bytes.NAME
File name field, ends at a NUL.COMMENT
Comment field, ends at a NUL.CRC1
First header CRC byte.CRC2
Second header CRC byte.DONE
Header complete, compressed data follows.
Constructor Details
HeaderState
private HeaderState()
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