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.21 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.27 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.28 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.29 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.30 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.31 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.33 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.34 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.32 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.37 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.36 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.35 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.43 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.38 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.40 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.42 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.41 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.44 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.68 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
asproject-0.1.60 templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as