uk.org.retep.util.io.tar
Class StandardHeader.EndOfArchive
java.lang.Object
uk.org.retep.util.io.tar.TarHeader
uk.org.retep.util.io.tar.StandardHeader.EndOfArchive
- Enclosing class:
- StandardHeader
public static class StandardHeader.EndOfArchive
- extends TarHeader
Special header used to mark the end of an archive.
At the end of the archive file there are two 512-byte blocks filled with
binary zeros as an end-of-file marker.
A reasonable system should write such end-of-file marker at the end of
an archive, but must not assume that such a block exists when reading an
archive. In particular GNU tar always issues a warning if it does not
encounter it.
| Fields inherited from class uk.org.retep.util.io.tar.TarHeader |
BLOCK_SIZE, chksum, CHKSUM_SIZE, devmajor, DEVMAJOR_SIZE, devminor, DEVMINOR_SIZE, gid, GID_SIZE, gname, GNAME_SIZE, linkname, LINKNAME_SIZE, mode, MODE_SIZE, mtime, MTIME_SIZE, name, NAME_SIZE, prefix, PREFIX_SIZE, prevHeader, size, SIZE_SIZE, succHeader, uid, UID_SIZE, uname, UNAME_SIZE, version |
| Methods inherited from class uk.org.retep.util.io.tar.TarHeader |
allocateTarHeader, chain, checksum, get, getAdditionalSize, getBlockSize, getPrevHeader, getSuccHeader, putAdditional, setPrevHeader, setSuccHeader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardHeader.EndOfArchive
public StandardHeader.EndOfArchive()
getTarHeaderType
public TarHeaderType getTarHeaderType()
- Description copied from class:
TarHeader
- The
TarHeaderType of this instance
- Specified by:
getTarHeaderType in class TarHeader
- Returns:
TarHeaderType of this instance
put
public void put(java.nio.ByteBuffer buffer)
- Writes binary zeros into the
ByteBuffer
Write the header to the ByteBuffer
- Overrides:
put in class TarHeader
- Parameters:
buffer - ByteBuffer to write to
getTarHeaderSize
public int getTarHeaderSize()
- This block is 2 header blocks in size
- Overrides:
getTarHeaderSize in class TarHeader
- Returns:
Copyright © 1998-2010 Retep Development Group. All Rights Reserved.