NAME
Archive::Lha::Header::Base
DESCRIPTION
This provides several common accessors for convenient properties of LHa headers.
METHODS
method
returns by which method the file is archived.
header_top
returns from where the header part of the archived file begins.
data_top
returns from where the data part of the archived file begins.
next_header
returns from where the next header part begins.
encoded_size
returns the encoded/compressed size of the archived file.
original_size
returns the original size of the archived file.
crc16
returns CRC-16 value of the archived file.
timestamp
returns when the archived file was last updated.
os
returns under which OS the file was archived.
pathname
returns the canonical form of the pathname of the archived file. If you want native form, see the header's private properties which varies depending on the header level. Also note that the native form uses 0xff as a path separator.
You also can pass encoding options:
# the pathname should have been encoded as 'euc-jp'
$header->pathname('euc-jp' => 'shiftjis');
If you are not sure, you can let it guess:
# original encoding of the path would be guessed
$header->pathname('guess' => 'shiftjis');
dirname
returns directory part of the pathname. This is mainly used while creating parent directory for the file.
AUTHOR
Kenichi Ishigaki, <ishigaki@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2007 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.