Iterator::File::Source::Interface - Interface for Iterator::File data sources


Iterator-File documentation  | view source Contained in the Iterator-File distribution.

Index


NAME

Top

Iterator::File::Source::Interface -- Interface for Iterator::File data sources

DESCRIPTION

Top

All data sources should subclass Iterator::File::Source::Interface & implement the methods defined here.

Iterator::File::Source::Interface inherits from Iterator::File::Utility.

new(%config)

Construct the object. Argument validation. Default assignment.

initialize()

Any heavy lifting should occur here. E.g., opening a file or shared memory segment.

next()

Advance the iterator & return the new value.

value()

Return the current value, without advancing.

advance_to( $location )

Advance the iterator to $location. If $location is behind the current location, behavior is undefined. (I.e., don't do that.)

finish()

Invoked when all is complete so that cleanup may occur.

SEE ALSO

Top

Iterator::File

AUTHOR

Top

William Reardon, <wdr1@pobox.com>

COPYRIGHT AND LICENSE

Top


Iterator-File documentation  | view source Contained in the Iterator-File distribution.