public class IndexEntry extends Header
Index.
An IndexEntry must contain the following:
- A Header
- Offset of the file content, relative to the beginning of the block.
- Size of the file content.
- CRC32.
- A Flag.| Constructor and Description |
|---|
IndexEntry(java.lang.String name,
java.util.Set<java.nio.file.attribute.PosixFilePermission> fileMode,
java.nio.file.attribute.FileTime modificationTime,
tech.sourced.siva.Flag flag,
long intStart,
long size,
long crc32,
long absStart)
Builds an IndexEntry composed by the
Header properties and the given specific
properties related to the siva file. |
| Modifier and Type | Method and Description |
|---|---|
long |
getAbsStart() |
long |
getCrc32() |
long |
getIntStart() |
long |
getSize() |
getFileMode, getFlag, getModificationTime, getNamepublic IndexEntry(java.lang.String name,
java.util.Set<java.nio.file.attribute.PosixFilePermission> fileMode,
java.nio.file.attribute.FileTime modificationTime,
tech.sourced.siva.Flag flag,
long intStart,
long size,
long crc32,
long absStart)
Header properties and the given specific
properties related to the siva file.name - Entry name.modificationTime - Modification time as UNIX time in nanoseconds.fileMode - UNIX mode.flag - supported flags @see FlagintStart - Offset of the file content, relative to the beginning of the block.size - size of the file content.crc32 - CRC32.absStart - Offset from the beginning of the block.public final long getAbsStart()
public final long getIntStart()
public final long getSize()
public final long getCrc32()