App-Context
view release on metacpan or search on metacpan
lib/App/Serializer.pm view on Meta::CPAN
#############################################################################
## $Id: Serializer.pm 6783 2006-08-11 17:43:28Z spadkins $
#############################################################################
package App::Serializer;
$VERSION = (q$Revision: 6783 $ =~ /(\d[\d\.]*)/)[0]; # VERSION numbers generated by svn
use App;
use App::Service;
@ISA = ( "App::Service" );
use Data::Dumper;
# use Compress::Zlib;
# use MIME::Base64;
# use Digest::HMAC_MD5;
# use Crypt::CBC;
use strict;
=head1 NAME
App::Serializer - Interface for serialization and deserialization
=head1 SYNOPSIS
use App;
$context = App->context();
$serializer = $context->service("Serializer"); # or ...
$serializer = $context->serializer();
$data = {
an => 'arbitrary',
collection => [ 'of', 'data', ],
of => {
arbitrary => 'depth',
},
};
$serialized_data = $serializer->serialize($data);
$data = $serializer->deserialize($serialized_data);
print $serializer->dump($data), "\n";
=head1 DESCRIPTION
A Serializer is a means by which a structure of data of arbitrary depth
may be serialized or deserialized.
Serializers may be used for configuration files, data persistence, or
transmission of data across a network.
Serializers include the ability to compress, encrypt, and/or MIME
the serialized data. (These are all scalar-to-scalar transformations.)
=cut
#############################################################################
# CLASS GROUP
#############################################################################
=head1 Class Group: Serializer
The following classes might be a part of the Serializer Class Group.
=over
=item * Class: App::Serializer
=item * Class: App::Serializer::Storable
=item * Class: App::Serializer::XMLSimple
=item * Class: App::Serializer::XML
=item * Class: App::Serializer::Ini
=item * Class: App::Serializer::Properties
( run in 0.476 second using v1.01-cache-2.11-cpan-e1769b4cff6 )