File::Format::RIFF 1.0.1
Sponsored Links
File::Format::RIFF 1.0.1 Ranking & Summary
File size:
0.009 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
932
Date added:
2007-04-27
Publisher:
Paul Sturm
File::Format::RIFF 1.0.1 description
File::Format::RIFF is a Perl module to Resource Interchange File Format/RIFF files.
SYNOPSIS
use File::Format::RIFF;
open( IN, file ) or die "Could not open file: $!";
my ( $riff1 ) = File::Format::RIFF->read( *IN );
close( IN );
$riff1->dump;
my ( $riff2 ) = new File::Format::RIFF( TYPE );
foreach my $chunk ( $riff1->data )
{
next if ( $chunk->id eq LIST );
$riff2->addChunk( $chunk->id, $chunk->data );
}
open( OUT, ">otherfile" ) or die "Could not open file: $!";
$riff2->write( *OUT );
close( OUT );
File::Format::RIFF provides an implementation of the Resource Interchange File Format. You can read, manipulate, and write RIFF files.
CONSTRUCTORS
$riff = new File::Format::RIFF( $type, $data );
Creates a new File::Format::RIFF object. $type is a four character code that identifies the type of this particular RIFF file. Certain types are defined to have a format, specifying which chunks must appear (e.g., WAVE files). If $type is not specified, it defaults to (four spaces). $data must be an array reference containing some number of RIFF lists and/or RIFF chunks. If $data is undef or not specified, then the new RIFF object is initialized empty.
$riff = File::Format::RIFF->read( $fh, $filesize );
Reads and parses an existing RIFF file from the given filehandle $fh. An exception will be thrown if the file is not a valid RIFF file. $filesize controls one aspect of the file format checking -- if $filesize is not specified, then stat will be called on $fh to determine how much data to expect. You may explicitly specify how much data to expect by passing in that value as $filesize. In either case, the amount of data read will be checked to make sure it matches the amount expected. Otherwise, it will throw an exception. If you do not wish it to make this check, pass in undef for $filesize.
Please note, if you wish to read an "in memory" filehandle, such as by doing this: open( $fh, <, $variable ), you may do so, but you must pass in length( $variable ) for $filesize, because filehandles opened this way to do not support the stat call.
You may also use sockes for $fh. But if you do, you must either specify the amount of data expected by passing in a value for $filesize, or if you do not know ahead of time how much data to expect, you must pass in undef for $filesize. (An example of using sockets to read and write RIFF files is available with your File::Format::RIFF distribution, at eq/socketpair.pl.)
METHODS
$riff->read( $fh, $filesize );
The read constructor may also be used as a method. If used in this manner, then all existing data contained in $riff will be discarded, and replaced by the contents read from $fh.
$riff->write( $fh );
Outputs a properly-formatted RIFF file to the given filehandle $fh.
SYNOPSIS
use File::Format::RIFF;
open( IN, file ) or die "Could not open file: $!";
my ( $riff1 ) = File::Format::RIFF->read( *IN );
close( IN );
$riff1->dump;
my ( $riff2 ) = new File::Format::RIFF( TYPE );
foreach my $chunk ( $riff1->data )
{
next if ( $chunk->id eq LIST );
$riff2->addChunk( $chunk->id, $chunk->data );
}
open( OUT, ">otherfile" ) or die "Could not open file: $!";
$riff2->write( *OUT );
close( OUT );
File::Format::RIFF provides an implementation of the Resource Interchange File Format. You can read, manipulate, and write RIFF files.
CONSTRUCTORS
$riff = new File::Format::RIFF( $type, $data );
Creates a new File::Format::RIFF object. $type is a four character code that identifies the type of this particular RIFF file. Certain types are defined to have a format, specifying which chunks must appear (e.g., WAVE files). If $type is not specified, it defaults to (four spaces). $data must be an array reference containing some number of RIFF lists and/or RIFF chunks. If $data is undef or not specified, then the new RIFF object is initialized empty.
$riff = File::Format::RIFF->read( $fh, $filesize );
Reads and parses an existing RIFF file from the given filehandle $fh. An exception will be thrown if the file is not a valid RIFF file. $filesize controls one aspect of the file format checking -- if $filesize is not specified, then stat will be called on $fh to determine how much data to expect. You may explicitly specify how much data to expect by passing in that value as $filesize. In either case, the amount of data read will be checked to make sure it matches the amount expected. Otherwise, it will throw an exception. If you do not wish it to make this check, pass in undef for $filesize.
Please note, if you wish to read an "in memory" filehandle, such as by doing this: open( $fh, <, $variable ), you may do so, but you must pass in length( $variable ) for $filesize, because filehandles opened this way to do not support the stat call.
You may also use sockes for $fh. But if you do, you must either specify the amount of data expected by passing in a value for $filesize, or if you do not know ahead of time how much data to expect, you must pass in undef for $filesize. (An example of using sockets to read and write RIFF files is available with your File::Format::RIFF distribution, at eq/socketpair.pl.)
METHODS
$riff->read( $fh, $filesize );
The read constructor may also be used as a method. If used in this manner, then all existing data contained in $riff will be discarded, and replaced by the contents read from $fh.
$riff->write( $fh );
Outputs a properly-formatted RIFF file to the given filehandle $fh.
File::Format::RIFF 1.0.1 Screenshot
File::Format::RIFF 1.0.1 Keywords
RIFF
Resource Interchange File Format
RIFF 1.0.1
Resource Interchange File
riff file
Perl module
file
data
read
FH
Filesize
files
File::Format::RIFF
FileFormatRIFF
File::Format::RIFF 1.0.1
Libraries
Bookmark File::Format::RIFF 1.0.1
File::Format::RIFF 1.0.1 Copyright
WareSeeker periodically updates pricing and software information of File::Format::RIFF 1.0.1 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 File::Format::RIFF 1.0.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
resource interchange file format riff
microsoft resource interchange file format
what is resource interchange file format
wav files
filesharing
rar files
midi files
pdf files
file sharing
zip files
reader's digest
riffe lake
file extension pdf
dataquick
data entry
fileneu0027s
reading body language and lying
guitar riffs
Related Software
Fischerscope-parse is a php script for parsing data out of WinHCU, software accopanying the Fischerscope H100 nanoindenter. Free Download
File::MMagic is a Perl module to guess file type. Free Download
Config::FreeForm is a Perl module that provides in-memory configuration data. Free Download
Video::Info::RIFF is a Perl module that can probe DivX and AVI files for attributes. Free Download
Fortran::Format is a Perl module to read and write data according to a standard Fortran 77 FORMAT. Free Download
SegyMAT is a set of m-files that allows matlab programs to easily read and write segy data. Free Download
Twisted Storage is an application that will take your data and manage it for you, just like a file system. Free Download
application to Split, Join, Compare, CheckSum and Mime Encode/Decode files. Free Download
Latest Software
Popular Software
Favourite Software