Open main menu

CDOT Wiki β

Changes

XB PointStream

258 bytes added, 16:24, 23 November 2010
Parser Interface
===Parser Interface===
<pre>
/*"onstart""onparse""onfinish"
@param {String} eventName
can be "onstart", "onparse" or "onfinish" @param {Function} func- the function to call when the event occurs
*/
addEventListener(eventName, func)
/*
@returns {Number} the number of points parsed so far by the parser
*/
getNumParsedPoints()
/*
@returns {Number} the total number of points in the resource or -1 if unknown
*/
getNumTotalPoints()
/*
@returns {Number} the number of bytes of the resource
*/
getFileSize()
1
edit