Files
openlayers/lib/OpenLayers/Format.js
crschmidt b22958ff2e Committing patch from #559 to add CLASS_NAME for all classes. (I never cleaned
these up like I should have.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-24 23:07:30 +00:00

38 lines
977 B
JavaScript

/* Copyright (c) 2006 MetaCarta, Inc., published under a modified BSD license.
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
* for the full text of the license. */
/**
* Base class for format reading/writing.
* @requires OpenLayers/Util.js
*/
OpenLayers.Format = OpenLayers.Class.create();
OpenLayers.Format.prototype = {
initialize: function(options) {
OpenLayers.Util.extend(this, options);
},
/**
* Read data from a string, and return a list of features.
*
* @param {string} data data to read/parse.
*/
read: function(data) {
alert("Read not implemented.");
},
/**
* Accept Feature Collection, and return a string.
*
* @param {Array} List of features to serialize into a string.
*/
write: function(features) {
alert("Write not implemented.");
},
/** @final @type String */
CLASS_NAME: "OpenLayers.Format"
};