Sha256: 62d5049e7df51bcf0fda9c0a65d7176c003d0b56947d6c1ee62e5cff5d5edc1c

Contents?: true

Size: 714 Bytes

Versions: 28

Compression:

Stored size: 714 Bytes

Contents

class com.asunit.util.TextFile extends XML {
	public static var linkageId:String = "com.asunit.util.TextFile";
	public static var classRef:Function = TextFile;

	private var source:String;
	private var callback:Object;
	private var fileString:String;
	
	public function TextFile(src:String, cb:Object) {
		source = src;
		callback = cb;
		ignoreWhite = true;
		onData = doData;
		if(src != undefined) {
			load(source);
		}
	}
	
	public function doData(str:String):Void {
		fileString = str;
		callback.onTextFileLoaded(this);
	}
	
	public function toString():String {
		return fileString;
	}
		
	public static var serializable:Boolean = Object.registerClass(linkageId, classRef);
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
asproject-0.1.74 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.69 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.71 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.75 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.89 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.80 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.92 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.84 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as