Top Description Fields Methods
org.apache.commons.compress.archivers

public Interface EntryStreamOffsets

Known Direct Implementers
org.apache.commons.compress.archivers.tar.TarArchiveEntry, org.apache.commons.compress.archivers.zip.ZipArchiveEntry

Provides information about ArchiveEntry stream offsets.

Field Summary

Modifier and TypeField and Description
public static final long
OFFSET_UNKNOWN

Special value indicating that the offset is unknown.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the offset of entry data stream, OFFSET_UNKNOWN if not known.
getDataOffset
()

Gets the offset of data stream within the archive file,

public boolean

Returns:

true if stream is contiguous, false otherwise.
isStreamContiguous
()

Indicates whether the stream is contiguous, i.e. not split among several archive parts, interspersed with control blocks, etc.

Field Detail

OFFSET_UNKNOWNback to summary
public static final long OFFSET_UNKNOWN

Special value indicating that the offset is unknown.

Method Detail

getDataOffsetback to summary
public long getDataOffset()

Gets the offset of data stream within the archive file,

Returns:long

the offset of entry data stream, OFFSET_UNKNOWN if not known.

isStreamContiguousback to summary
public boolean isStreamContiguous()

Indicates whether the stream is contiguous, i.e. not split among several archive parts, interspersed with control blocks, etc.

Returns:boolean

true if stream is contiguous, false otherwise.