PackagedragonBones.objects
Classpublic class XMLDataParser
InheritanceXMLDataParser Inheritance Object

The XMLDataParser xlass creates and parses xml data from dragonBones generated maps.



Public Methods
 MethodDefined By
  
compressData(skeletonXML:XML, textureAtlasXML:XML, byteArray:ByteArray):ByteArray
[static] Compress all data into a ByteArray for serialization.
XMLDataParser
  
decompressData(compressedByteArray:ByteArray):DecompressedData
[static] Decompress a compatible DragonBones data.
XMLDataParser
  
[static] Parse the SkeletonData.
XMLDataParser
Method Detail
compressData()method
public static function compressData(skeletonXML:XML, textureAtlasXML:XML, byteArray:ByteArray):ByteArray

Compress all data into a ByteArray for serialization.

Parameters

skeletonXML:XML — The Skeleton data.
 
textureAtlasXML:XML — The TextureAtlas data.
 
byteArray:ByteArray — The ByteArray representing the map.

Returns
ByteArray — ByteArray. A DragonBones compatible ByteArray.
decompressData()method 
public static function decompressData(compressedByteArray:ByteArray):DecompressedData

Decompress a compatible DragonBones data.

Parameters

compressedByteArray:ByteArray — The ByteArray to decompress.

Returns
DecompressedData — A DecompressedData instance.
parseSkeletonData()method 
public static function parseSkeletonData(skeletonXML:XML):SkeletonData

Parse the SkeletonData.

Parameters

skeletonXML:XML — The Skeleton xml to parse.

Returns
SkeletonData — A SkeletonData instance.