TextFile
SimpleTextFile
represents the simplest way for accessing the file informations.
Supports all necessary features for TextFile
without any other advantages.
public function getLocation(Void):String
Returns the location of the resource corresponding to the content.
Note: Might be the URI of the resource or null if its not requestable or the internal location corresponding to the instance path (if its without any connection to a real file).
location of the resource related to the content
public function getContent(Void):String
Returns the content of the file
content of the file
getContent() in org.as2lib.io.file.TextFile
public function getSize(Void):Byte
Returns the size of the file in bytes.
size of the file in bytes
public function toString():String
Extended Stringifier
Example:
[type org.as2lib.io.file.SimpleTextFile | Location: MyTextFile.txt; Size: 12KB; ]
the TextFile
as string
toString() in org.as2lib.core.BasicInterface