|
NAMESWF::BinStream::Codec - Document for SWF::BinStream codecs.SYNOPSISuse SWF::BinStream; .... $stream->add_codec('Foo'); ---- package SWF::BinStream::Codec::Foo; $VERSION='x.xx'; package SWF::BinStream::Codec::Foo::Read; sub new {} sub decode {} sub close {} package SWF::BinStream::Codec::Foo::Write; sub new {} sub encode {} sub close {} 1; DESCRIPTIONSWF::BinStream:Codec::* package provides additive codecs for SWF::BinStream.The whole package name must be 'SWF::BinStream::Codec::[name]'. SWF::BinStream use the package when its add_codec method is called with the name. Two sub package, 'SWF::BinStream::Codec::[name]::Read' and 'SWF::BinStream::Codec::[name]::Write' should contain the package. METHODSThe codec class must equip these methods. Each method should die when error occurs.SWF::BinStream::[name]::Read
SWF::BinStream::[name]::Write
COPYRIGHTCopyright 2002 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.
Visit the GSP FreeBSD Man Page Interface. |