Java source code of 'jhplot.io.HFileMap'

/**
 *    Copyright (C)  DataMelt project. The jHPLot package by S.Chekanov and Work.ORG
 *    All rights reserved.
 *
 *    This program is free software; you can redistribute it and/or modify it under the terms
 *    of the GNU General Public License as published by the Free Software Foundation; either
 *    version 3 of the License, or any later version.
 *
 *    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 *    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *    See the GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License along with this program;
 *    if not, see .
 *
 *    Additional permission under GNU GPL version 3 section 7:
 *    If you have received this program as a library with written permission from the DataMelt team,
 *    you can link or combine this library with your non-GPL project to convey the resulting work.
 *    In this case, this library should be considered as released under the terms of
 *    GNU Lesser public license (see ),
 *    provided you include this license notice and a URL through which recipients can access the
 *    Corresponding Source.
 **/
package jhplot.io;

import java.io.Serializable;
import java.util.HashMap;

import jhplot.gui.HelpBrowser;

/**
 * Hash map for internal repsentation of data inside HFile. Used by HFile.
 * 
 * @author sergei
 * 
 * @param 
 * @param 
 */
public class HFileMap extends HashMap implements
		Serializable {

	private int version = 1;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public HFileMap() {
		super();
	}

	public HFileMap(int version) {
		super();
		this.version = version;
	}

	/**
	 * Get file version.
	 * 
	 * @return
	 */
	public int getVersion() {
		return this.version;
	}

	/**
	 * Set file version.
	 * 
	 * @param version
	 */
	public void setVersion(int version) {
		this.version = version;
	}

	/**
	 * Show online documentation.
	 */
	public void doc() {

		String a = this.getClass().getName();
		a = a.replace(".", "/") + ".html";
		new HelpBrowser(HelpBrowser.JHPLOT_HTTP + a);

	}
}