org.apache.commons.compress.archivers

## Interface EntryStreamOffsets

- All Known Implementing Classes:
    JarArchiveEntry, TarArchiveEntry, ZipArchiveEntry

      public interface EntryStreamOffsets

  Provides information about ArchiveEntry stream offsets.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static long` | `OFFSET_UNKNOWN` Special value indicating that the offset is unknown.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getDataOffset()` Gets the offset of data stream within the archive file,
    `boolean` | `isStreamContiguous()` Indicates whether the stream is contiguous, i.e.

- - ### Field Detail

    - #### OFFSET_UNKNOWN

          static final long OFFSET_UNKNOWN

      Special value indicating that the offset is unknown.
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### getDataOffset

          long getDataOffset()

      Gets the offset of data stream within the archive file,
      Returns:
        the offset of entry data stream, `OFFSET_UNKNOWN` if not known.

    - #### isStreamContiguous

          boolean isStreamContiguous()

      Indicates whether the stream is contiguous, i.e. not split among several archive parts, interspersed with control blocks, etc.
      Returns:
        true if stream is contiguous, false otherwise.

Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.