public class XmlIoAbstractSpimData<S extends AbstractSequenceDescription<?,?,?>,T extends AbstractSpimData<S>> extends XmlIoSingleton<T>
handledTags| Constructor and Description |
|---|
XmlIoAbstractSpimData(Class<T> klass,
XmlIoAbstractSequenceDescription<?,S> xmlIoSequenceDescription,
XmlIoViewRegistrations xmlIoViewRegistrations) |
| Modifier and Type | Method and Description |
|---|---|
T |
fromXml(org.jdom2.Element root,
File xmlFile) |
T |
fromXml(org.jdom2.Element root,
URI xmlURI) |
String |
getVersion(org.jdom2.Element root) |
T |
load(Reader xmlReader,
URI xmlURI)
Load SpimData from the given
Reader (that can read from a local
file, or S3 for example). |
T |
load(String xmlFilename) |
protected URI |
loadBasePathURI(org.jdom2.Element root,
URI xmlURI) |
void |
save(T spimData,
String xmlFilename) |
void |
save(T spimData,
Writer xmlWriter,
URI xmlURI)
Write
spimData to the given Writer (that can write to a
local file, or S3 for example). |
org.jdom2.Element |
toXml(T spimData,
File xmlFileDirectory) |
org.jdom2.Element |
toXml(T spimData,
URI xmlParentURI) |
fromXml, getTag, toXmlpublic XmlIoAbstractSpimData(Class<T> klass, XmlIoAbstractSequenceDescription<?,S> xmlIoSequenceDescription, XmlIoViewRegistrations xmlIoViewRegistrations)
public T load(String xmlFilename) throws SpimDataException
SpimDataExceptionpublic T load(Reader xmlReader, URI xmlURI) throws SpimDataException
Reader (that can read from a local
file, or S3 for example). The xmlURI is the URI that the xmlReader reads from, and it is used to construct the base path URI.SpimDataExceptionpublic void save(T spimData, String xmlFilename) throws SpimDataException
SpimDataExceptionpublic void save(T spimData, Writer xmlWriter, URI xmlURI) throws SpimDataException
spimData to the given Writer (that can write to a
local file, or S3 for example). The xmlURI is the URI that the
xmlWriter writes to, and it is used to construct the base path
URI.SpimDataExceptionpublic String getVersion(org.jdom2.Element root)
public T fromXml(org.jdom2.Element root, File xmlFile) throws SpimDataException
SpimDataExceptionpublic T fromXml(org.jdom2.Element root, URI xmlURI) throws SpimDataException
SpimDataExceptionprotected URI loadBasePathURI(org.jdom2.Element root, URI xmlURI) throws SpimDataIOException
SpimDataIOExceptionpublic org.jdom2.Element toXml(T spimData, File xmlFileDirectory) throws SpimDataException
SpimDataExceptionpublic org.jdom2.Element toXml(T spimData, URI xmlParentURI) throws SpimDataException
SpimDataExceptionCopyright © 2013–2024 BigDataViewer. All rights reserved.