Package org.eclipse.packager.rpm.parse
Class InputHeader<T extends RpmBaseTag>
java.lang.Object
org.eclipse.packager.rpm.parse.InputHeader<T>
- All Implemented Interfaces:
ReadableHeader<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntry(int tag) longGet the length of header section in the streamgetOptionalTag(int tag) getOptionalTag(T tag) longgetStart()Get the start position of the header section in the streamgetTag(int tag) getTagOrDefault(int tag, Object defaultValue) getTagOrDefault(T tag, Object defaultValue) Get the value from a header structure
-
Constructor Details
-
InputHeader
-
-
Method Details
-
getStart
public long getStart()Get the start position of the header section in the stream- Returns:
- the start position
-
getLength
public long getLength()Get the length of header section in the stream- Returns:
- the length of the header in bytes
-
getTag
-
getTag
-
getValue
Description copied from interface:ReadableHeaderGet the value from a header structure- Specified by:
getValuein interfaceReadableHeader<T extends RpmBaseTag>- Parameters:
tag- the tag- Returns:
- the optional value
-
getOptionalTag
-
getOptionalTag
-
getEntry
-
getEntry
-
getTagOrDefault
-
getTagOrDefault
-
getRawTags
-