Files
openlayers/lib/OpenLayers/Format.js
crschmidt 044368664f Tag OpenLayers 2.4-rc3.
git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.4-rc3@3113 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-02 14:20:28 +00:00

38 lines
967 B
JavaScript

/* Copyright (c) 2006 MetaCarta, Inc., published under the BSD license.
* See http://svn.openlayers.org/trunk/openlayers/release-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"
};