TextFile2Array
| Kind of class: | class |
|---|---|
| Inherits from: | TextFile2Collection < Dispatcher |
| Author: | Arthur Clemens |
| Classpath: | org.asapframework.data.filedatatransform.TextFile2Array |
| File last modified: | Sunday, 17 September 2006, 01:56:05 |
Transforms the contents of a text file to an array by splitting the text in lines.
Lines that start with '#' are ignored.
Important: the file's text file should have Unix or DOS line endings.
Events broadcast to listeners:
TextFile2ArrayEvent with type:
FINISHED Summary
Constructor
Instance properties
Instance properties inherited from TextFile2Collection
Instance properties inherited from Dispatcher
Event handlers
Event handlers inherited from TextFile2Collection
Constructor
TextFile2Array
function TextFile2Array (
inFileUrl:String,
inListener:Object,
inArray:Array)
Creates a new TextFile2Array instance.
Parameters:
inFileUrl :
url of the text file with data to parse
inListener :
(optional) object that receives a TextFile2ArrayEvent.FINISHED after parsing
inCollection:
(optional) existing Array to store the data in; if not provided a new Array will be created