The number of bytes the Data instance contains.
int length readonly
Returns the contents of the Data instance as a UTF8 string.
string asString( int encoding )
Determines if the contents of this Data instance are exactly equal to those of the other Data instance.
bool isEqualTo( Data other )
Copies the contents of another data instance into this one replacing any existing contents.
bool loadFromData( Data source )
Loads this Data instance with the given string as UTF8.
bool loadFromString( string source )
Replaces the contents of this Data instance with the contents of the given file.
bool loadFromFile( string fileName )
Writes the contents of this Data instance to the given file.
bool writeToFile( string fileName )
Loads the data object with the contents of the given url.
bool loadFromURL( string url )
Interprets the contents of this data instance as a PLIST and converts it to an XML plist - which is returned as a string.
string asXMLPList()
Interprets the contents of this data instance as a PLIST and converts it to a JavaScript object.
jsval asPList()
Treats the contents of the data instance as HTML and runs it through tidy to clean it and output XHTML
string asTidyXHTML()