git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.4-rc1@3001 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
38 lines
974 B
JavaScript
38 lines
974 B
JavaScript
/* Copyright (c) 2006 MetaCarta, Inc., published under a modified 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"
|
|
|
|
};
|