Access keys

TextFile2Collection

Kind of class: class
Inherits from: Dispatcher
Known subclasses:
Author: Arthur Clemens
Classpath: org.asapframework.data.filedatatransform.TextFile2Collection
File last modified: Thursday, 12 October 2006, 11:09:15
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 properties
Instance properties inherited from Dispatcher
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 playground.classes.data.filedatatransform.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.