Jacky Chang > Data-Plist-0.1 > Data::Plist::Reader

Download:
Data-Plist-0.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  0
View/Report Bugs
Source   Latest Release: Data-Plist-0.100_001

NAME ^

Data::Plist::Reader - Abstract superclass for BinaryReader

SYNOPSIS ^

 # Create new
 $read = Data::Plist::BinaryReader->new;

 # Reading from a string C<$str>
 my $plist = $read->open_string($str);

 # Writing from file C<$filename>
 $plist = $read->read($filename);

DESCRIPTION ^

Data::Plist::Reader is an abstract superclass of BinaryReader. Takes either a string or a filehandle containing data formatted as an Apple property list and returns it as a Data::Plist.

METHODS ^

new

Create a new reader.

open_string $content

Takes binary data $content and reads it into a filehandle. Then passes that filehandle to "open_fh".

open_file $filename

Takes a filename $filename and reads its data into a filehandle. Then passes the filehandle to "open_fh".

open_fh

Place-holder method for Reader's subclass. Currently unimplemented.

syntax highlighting: