Access keys

TextFile2Collection

Kind of class: class
Inherits from: Dispatcher
Known subclasses:
Author: Arthur Clemens
Classpath: data.filedatatransform.TextFile2Collection
File last modified: Monday, 02 January 2006, 15:34:46
Base class that takes a text file url, loads the file data and converts the text contents to a collection structure (Tree or Array).
Actual parsing is not provided in this class, see the subclasses for implementations.

Summary

Constructor
Instance methods

Constructor

TextFile2Collection

function TextFile2Collection (
inFileUrl:String, inListener:Object, inCollection:Object)
Creates a TextFile2Collection instance.
Parameters:
inFileUrl :
url of the text file with data to parse
inListener :
(optional) object that receives a 'finished' event after parsing (see subclasses for event types, for instance TextFile2TreeEvent; most likely the listener will be the invoker of this constructor
inCollection:
(optional) existing object to store the data in; if not provided a new object will be created

Instance methods

load

function load (
) : Void
Loads the text file and starts the parser.