
Archive::Lha::Header::Base

This provides several common accessors for convenient properties of LHa headers.

returns by which method the file is archived.
returns from where the header part of the archived file begins.
returns from where the data part of the archived file begins.
returns from where the next header part begins.
returns the encoded/compressed size of the archived file.
returns the original size of the archived file.
returns CRC-16 value of the archived file.
returns when the archived file was last updated.
returns under which OS the file was archived.
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');
returns directory part of the pathname. This is mainly used while creating parent directory for the file.

Kenichi Ishigaki, <ishigaki@cpan.org>

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.