| Audio-TagLib documentation | Contained in the Audio-TagLib distribution. |
Audio::TagLib::APE::Item - An implementation of APE-items
use Audio::TagLib::APE::Item;
my $key = Audio::TagLib::String->new("key");
my $value = Audio::TagLib::String->new("value");
my $i = Audio::TagLib::APE::Item->new($key, $value);
$i->setType("Text");
$i->setReadOnly(1) unless $i->isReadOnly();
my $data = $i->render();
This class provides the features of items in the APEv2 standard.
Constructs an empty item.
Constructs an item with $key and $value.
Constructs an item with $key and $values.
Construct an item as a copy of $item.
Destroys the item.
Copies the contents of $item into this item.
Returns the key.
Returns the binary value.
Returns the size of the full item.
Returns the value as a single string. In case of multiple strings, the first is returned.
Returns the value as a string list.
Render the item to a ByteVector.
Parse the item from the ByteVector $data.
Set the item to read-only.
Return true if the item is read-only.
Sets the type of the item to $type.
see %_ItemTypes
Returns the type of the item.
see %_ItemTypes
Returns if the item has any real content.
keys %Audio::TagLib::APE::Item::_ItemTypes lists all available itemtypes
used in Perl.
see setType
None by default.
Dongxu Ma, <dongxu@cpan.org>
Copyright (C) 2005 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
| Audio-TagLib documentation | Contained in the Audio-TagLib distribution. |
package Audio::TagLib::APE::Item; use 5.008003; use strict; use warnings; our $VERSION = '1.41'; use Audio::TagLib; our %_ItemTypes = ( "Text" => 0, "Binary" => 1, "Locator" => 2, ); # Preloaded methods go here. 1; __END__ # Below is stub documentation for your module. You'd better edit it!