SWF::BinStream::File - Read and write file as binary stream.
use SWF::BinStream::File; $read_file = SWF::BinStream::File::Read->new('test.swf'); $byte = $read_file->get_UI8; .... $read_file->close; $write_file = SWF::BinStream::Write->new('new.swf'); $write_file->set_UI8($byte); .... $write_file->close;
SWF::BinStream::File module provides reading and writing binary files as a binary stream.
is a subclass of SWF::BinStream::Read. You can get byte and bit data from files.
You can use the methods of SWF::BinStream::Read except add_atream.
creates a read stream connected with $file. $file is a file name or a file handle. $version is SWF version number. Default is 5.
opens another file and connect to the stream. Even though the previous file is automatically closed and the stream is cleared, $stream->tell number is continued.
closes the file and clears the stream.
is a subclass of SWF::BinStream::Write. You can write byte and bit data to a file.
You can use the methods of SWF::BinStream::Write except autoflush.
creates a stream writing to a file $file. $file is a file name or a file handle. $version is SWF version number. Default is 5.
opens another file and connect to the stream. The stream is flushed and the previous file is closed.
flushes the stream and closes the file.
Copyright 2001 Yasuhiro Sasama (ySas), <ysas@nmt.ne.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SWF::BinStream
To install SWF::File, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SWF::File
CPAN shell
perl -MCPAN -e shell install SWF::File
For more information on module installation, please visit the detailed CPAN module installation guide.