public abstract class JaxoImportPlugin extends AbstractJaxoPlugin
Constructor and Description |
---|
JaxoImportPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
commitConfiguration()
Apply the changes made in the configuration panel.
|
java.lang.String |
getCharsetName()
Returns the current charset name.
|
javax.swing.JComponent |
getConfigurationPanel()
Returns a panel that allows to configure optional
parameters of this import format.
|
JaxoGraph |
importGraph(java.io.File f)
Imports a graph from the given file.
|
protected abstract JaxoGraph |
importGraph(java.io.InputStream inputStream)
Import a graph from a Reader.
|
JaxoGraph |
importGraph(java.lang.String fileName)
Imports a graph from the given file.
|
void |
setCharsetName(java.lang.String name)
Sets the charset name.
|
close, close, close, close, getClassName, getFailure, getFileExtension, getFileExtensionDescription, getFormatName, getLang, getLog, getParentComponent, getProperties, getProperty, getProperty, getShortGraphName, hasFailed, isSilent, loadProperties, pluginName, registerDictionary, setFailure, setParentComponent, setProperty, setShortGraphName, setSilent, storeProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
description, getShortName, makeAvailableAtRuntime, pluginId, version
updateLanguage
public java.lang.String getCharsetName()
public void setCharsetName(java.lang.String name)
name
- The charset to use. No check is done here whether the
given charset name is valid or the corresponding Charset is supported.
Set this to null to use the system default encoding.public JaxoGraph importGraph(java.lang.String fileName)
fileName
- The absolute path to the file to be importedpublic JaxoGraph importGraph(java.io.File f)
f
- The file to be importedpublic javax.swing.JComponent getConfigurationPanel()
public void commitConfiguration()
protected abstract JaxoGraph importGraph(java.io.InputStream inputStream) throws JaxoPluginExecutionException
inputStream
- An InputStream to supply the input data.JaxoPluginExecutionException
- if the graph could not be imported.
Note that the message of the Exception should be
an internationalized String.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.