Main > Programming > Libraries >

Audio::TagLib::File 1.42

Audio::TagLib::File 1.42

Sponsored Links

Audio::TagLib::File 1.42 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 1.4 MB
Platform: Any Platform
License: GPL (GNU General Public License)
Price:
Downloads: 1214
Date added: 2006-06-27
Publisher: Dongxu Ma

Audio::TagLib::File 1.42 description

Audio::TagLib::File is a file class with some useful methods for tag manipulation.

This class is a basic file class with some methods that are particularly useful for tag editors. It has methods to take advantage of ByteVector and a binary search method for finding patterns in a file.

DESTROY()

Destroys this File instance.

PV name()

Returns the file name in the local file system encoding.

Tag tag() [pure virtual]

Returns this files tag. This should be reimplemented in the concrete subclasses.

AudioProperties audioProperties() [pure virtual]

Returns this files audio properties. This should be reimplemented in the concrete subclasses. If no audio properties were read then this will return undef.

BOOL save() [pure virtual]

Save the file and its associated tags. This should be reimplemented in the concrete subclasses. Returns true if the save succeeds.

ByteVector readBlock(UV $length)

Reads a block of size $length at the current get pointer.

void writeBlock(ByteVector $data)

Attempts to write the block $data at the current get pointer. If the file is currently only opened read only -- i.e. readOnly() returns true -- this attempts to reopen the file in read/write mode.

IV find(ByteVector $pattern, IV $fromOffset = 0, ByteVector $before = ByteVector::null)

Returns the offset in the file that $pattern occurs at or -1 if it can not be found. If $before is set, the search will only continue until the pattern $before is found. This is useful for tagging purposes to search for a tag before the synch frame.

Searching starts at $fromOffset, which defaults to the beginning of the file.

This has the practial limitation that $pattern can not be longer than the buffer size used by readBlock(). Currently this is 1024 bytes.

IV rfind(ByteVector $pattern, IV $fromOffset = 0, ByteVector $before = ByteVector::null)

Returns the offset in the file that $pattern at or -1 if it can not be found. If $before is set, the search will only continue until the pattern $before is found. This is useful for tagging purposes to search for a tag before the synch frame.

Searching starts at $fromOffset and proceeds from the that point to the beginning of the file and defaults to the end of the file.

This has the practial limitation that $pattern can not be longer than the buffer size used by readBlock(). Currently this is 1024 bytes.

void insert(ByteVector $data, UV $start = 0, UV $replace = 0)

Insert $data at position $start in the file overwriting $replace bytes of the original content.

This method is slow since it requires rewriting all of the file after the insertion point.

void removeBlock(UV $start = 0, UV $length = 0)

Removes a block of the file starting a $start and continuing for $length bytes.
This method is slow since it involves rewriting all of the file after the removed portion.

BOOL readOnly()

Returns true if the file is read only (or if the file can not be opened).

BOOL isOpen()

Since the file can currently only be opened as an argument to the constructor (sort-of by design), this returns if that open succeeded.

BOOL isValid()

Returns true if the file is open and readble and valid information for the Tag and / or AudioProperties was found.

void seek(IV $offset, PV $p = "Beginning")

Move the I/O pointer to $offset in the file from position $p. This defaults to seeking from the beginning of the file.

void clear()

Reset the end-of-file and error flags on the file.

IV tell()

Returns the current offset withing the file.

IV length()

Returns the length of the file.

BOOL isReadable(PV $file) [static]

Returns true if $file can be opened for reading. If the file does not exist, this will return false.

BOOL isWritable(PV $file) [static]

Returns true if $file can be opened for writing.

%_Position

Position in the file used for seeking. C
%Audio::TagLib::File::_Position> lists all available values used in Perl code.

Audio::TagLib::File 1.42 Screenshot

Advertisements

Audio::TagLib::File 1.42 Keywords

Bookmark Audio::TagLib::File 1.42

Hyperlink code:
Link for forum:

Audio::TagLib::File 1.42 Copyright

WareSeeker periodically updates pricing and software information of Audio::TagLib::File 1.42 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Audio::TagLib::File 1.42 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Audio::TagLib is a library for reading and editing audio meta data, commonly known as tags. Free Download
Audio::TagLib::MPC::File is an implementation of Audio::TagLib::File with MPC specific methods. Free Download
Audio::TagLib::MPEG::File is an MPEG file class with some useful methods specific to MPEG. Free Download
Audio::TagLib::Vorbis::File is an implementation of Ogg::File with Vorbis specific methods. Free Download
Audio::TagLib::Shell is a mini shell of Audio::TagLib. Free Download
Audio::TagLib::Tag is a simple, generic interface to common audio meta data fields. Free Download
Audio::TagLib::Ogg::FLAC::File is an implementation of Audio::TagLib::File with Ogg/FLAC specific methods. Free Download
Audio::TagLib::ByteVector is a byte vector. Free Download