Brian Cassidy > Image-XBin-0.06 > Image::XBin::Parser

Download:
Image-XBin-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.06   Source  

NAME ^

Image::XBin::Parser - Reads in XBin image files

SYNOPSIS ^

        my $parser = Image::XBin::Parser->new;
        my $xbin   = $parser->parse( file => 'xbin.xb' );

METHODS ^

new( [%options] )

Creates a new parser object and reads in a file, handle or string.

clear( )

Clears the internal xbin object.

parse( %options )

Reads in a file, handle or string

        my $parser = Image::XBin::Parser->new;

        # filename
        $xbin = $parser->parse( file => 'file.xb' );
        
        # file handle
        $xbin = $parser->parse( handle => $handle );

        # string
        $xbin = $parser->parse( string => $string );

xbin( [$xbin] )

Gets / sets the internal XBin object.

AUTHOR ^

COPYRIGHT AND LICENSE ^

Copyright 2003-2009 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: