Files
openlayers/src/ol/parser/parser.js
Tim Schaub 69b6fae744 Parser base class
GeoJSON is now a parser.  The idea is that we'll want to pass parsers to sources or protocols and want a known type.
2013-03-03 11:50:51 +01:00

22 lines
366 B
JavaScript

goog.provide('ol.parser.Parser');
/**
* @constructor
*/
ol.parser.Parser = function() {};
/**
* @param {*} data Data to deserialize.
* @return {*} Parsed data.
*/
ol.parser.Parser.prototype.read = goog.abstractMethod;
/**
* @param {*} obj Object to serialize.
* @return {*} Serialized object.
*/
ol.parser.Parser.prototype.write = goog.abstractMethod;