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! =head1 NAME Audio::TagLib::APE::Item - An implementation of APE-items =head1 SYNOPSIS 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(); =head1 DESCRIPTION This class provides the features of items in the APEv2 standard. =over =item I Constructs an empty item. =item I $key, L $value)> Constructs an item with $key and $value. =item I $key, L $values)> Constructs an item with $key and $values. =item I $item)> Construct an item as a copy of $item. =item I Destroys the item. =item I $item)> Copies the contents of $item into this item. =item I key()> Returns the key. =item I value()> Returns the binary value. =item I Returns the size of the full item. =item I toString()> Returns the value as a single string. In case of multiple strings, the first is returned. =item I toStringList()> Returns the value as a string list. =item I render()> Render the item to a ByteVector. =item I $data)> Parse the item from the ByteVector $data. =item I Set the item to read-only. =item I Return true if the item is read-only. =item I Sets the type of the item to $type. see I<%_ItemTypes> =item I Returns the type of the item. see I<%_ItemTypes> =item I Returns if the item has any real content. =item %_ItemTypes C lists all available itemtypes used in Perl. see I> =back =head2 EXPORT None by default. =head1 SEE ALSO L =head1 AUTHOR Dongxu Ma, Edongxu@cpan.orgE =head1 COPYRIGHT AND LICENSE 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. =cut