IDS::DataSource::Lines
Introduction
This class is a subclass of IDS::DataSource, and meets its interface specification.
This class exists primarily as a template for new IDS::DataSource subclasses, but it is fully-functional, if a little boring.
- load(source)
-
load exactly one request from a file, IO::Handle, or supplied string. If a string is used, it is up to the caller to ensure that more than one request is not in the string.
- read_session(filehandle)
-
Read an HTTP session (up to EOF or a blank line) from the filehandle passed as an argument.
- read_next(filehandle)
-
Read the next request from the list of files (filehandle containing list of file names is argument).
- data()
-
Return the data used for the tokens we have. If called in array mode, we return the individual lines, otherwise the join of those line.
- tokens()
-
Return the tokens that result from parsing the structure. The tokens can be returned as an array or a reference to the internal array holding them (for efficiency). Modify this referenced array at your own risk.
Functions required by IDS::DataSource
- default_parameters()
-
Sets all of the default values for the parameters. Normally called by new() or one of its descendents.
AUTHOR INFORMATION
Copyright 2005-2007, Kenneth Ingham. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Address bug reports and comments to: ids_test at i-pi.com. When sending bug reports, please provide the versions of IDS::Test.pm, IDS::Algorithm.pm, IDS::DataSource.pm, the version of Perl, and the name and version of the operating system you are using. Since Kenneth is a PhD student, the speed of the reponse depends on how the research is proceeding.
BUGS
Please report them.