Archive: ezcArchiveUstarTar
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcArchiveUstarTar
|
The ezcArchiveUstarTar class implements the Tar ustar archive format. [
source]
Implemented Interfaces
- Iterator (internal interface)
ezcArchiveUstarTar is a subclass from
ezcArchive that provides the common interface, and
ezcArchiveV7Tar that provides the basic Tar implementation.
ezcArchiveUstarTar reads on creation only the first
entry from the archive. When needed next entries are read.
The Ustar Tar algorithm is an extension of V7 Tar. Ustar has the following extended features:
- Filenames up to 255 characters.
- Stores the owner and group by ID and Name.
- Can archive: regular files, symbolic links, hard links, fifo's, and devices.
Parents
ezcArchive
|
--ezcArchiveV7Tar
|
--ezcArchiveUstarTar
Descendents
| Child Class |
Description |
| ezcArchivePaxTar |
The ezcArchivePaxTar class implements the Tar pax or posix archive format.
|
| ezcArchiveGnuTar |
The ezcArchiveGnuTar class implements the GNU Tar archive format.
|
Inherited Constants
From
ezcArchiveV7Tar:
From
ezcArchive:
Inherited Member Variables
From
ezcArchiveV7Tar:
From
ezcArchive:
Method Summary
|
public ezcArchiveUstarTar |
__construct(
$blockFile, [$blockFactor = 20] )
Initializes the Tar and tries to read the first entry from the archive. |
|
public bool |
algorithmCanWrite(
)
Returns true because the TAR_USTAR algorithm can write. |
|
protected ezcArchiveUstarHeader |
createTarHeader(
[$file = null] )
Creates the a new ustar tar header for this class. |
|
public int |
getAlgorithm(
)
Returns the value which specifies a TAR_USTAR algorithm. |
Inherited Methods
From
ezcArchiveV7Tar :
From
ezcArchive :
Methods
__construct
ezcArchiveUstarTar __construct(
$blockFile, [int
$blockFactor = 20] )
Initializes the Tar and tries to read the first entry from the archive.
At initialization it sets the blockFactor to $blockFactor. Each tar archive has always $blockFactor of blocks ( 0, $blockFactor, 2 * $blockFactor, etc ).
The Tar archive works with blocks, so therefore the first parameter expects the archive as a blockFile.
Parameters
| Name |
Type |
Description |
$blockFile |
ezcArchiveBlockFile |
|
$blockFactor |
int |
|
Redefinition of
Redefined in descendants as
algorithmCanWrite
bool algorithmCanWrite(
)
Returns true because the TAR_USTAR algorithm can write.
See also:
isWritable().
Redefinition of
Redefined in descendants as
createTarHeader
ezcArchiveUstarHeader createTarHeader(
[string|null
$file = null] )
Creates the a new ustar tar header for this class.
This method expects an ezcArchiveBlockFile that points to the header that should be read (and created). If null is given as block file, an empty header will be created.
Parameters
| Name |
Type |
Description |
$file |
string|null |
|
Redefinition of
Redefined in descendants as
getAlgorithm
int getAlgorithm(
)
Returns the value which specifies a TAR_USTAR algorithm.
Redefinition of
Redefined in descendants as
Last updated: Tue, 02 Dec 2008