Class SegmentHeader
java.lang.Object
org.apache.commons.compress.harmony.unpack200.SegmentHeader
SegmentHeader is the header band of a
Segment
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
int
int
Obtain the band headers data as an input stream.int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
void
read
(InputStream in) void
setArchiveModtime
(long archiveModtime) void
setArchiveSize
(long archiveSize) void
setSegmentsRemaining
(long value) void
unpack()
-
Constructor Details
-
SegmentHeader
-
-
Method Details
-
getArchiveModtime
-
getArchiveSize
-
getArchiveSizeOffset
-
getAttributeDefinitionCount
-
getBandHeadersInputStream
Obtain the band headers data as an input stream. If no band headers are present, this will return an empty input stream to prevent any further reads taking place. Note that as a stream, data consumed from this input stream can't be re-used. Data is only read from this stream if the encoding is such that additional information needs to be decoded from the stream itself.- Returns:
- the band headers input stream
-
getBandHeadersSize
-
getClassCount
-
getCpClassCount
-
getCpDescriptorCount
-
getCpDoubleCount
-
getCpFieldCount
-
getCpFloatCount
-
getCpIMethodCount
-
getCpIntCount
-
getCpLongCount
-
getCpMethodCount
-
getCpSignatureCount
-
getCpStringCount
-
getCpUTF8Count
-
getDefaultClassMajorVersion
-
getDefaultClassMinorVersion
-
getInnerClassCount
-
getNumberOfFiles
-
getOptions
-
getSegmentsRemaining
-
read
- Throws:
IOException
Error
Pack200Exception
-
setArchiveModtime
-
setArchiveSize
-
setSegmentsRemaining
-
unpack
-