public class XMCDAParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
readXMCDAInputStreamMaxSize
The maximum size of the stream that can be read by
#readXMCDA(XMCDA, InputStream, Set, String...) |
static String |
XMCDAv2_VERSION |
| Constructor and Description |
|---|
XMCDAParser() |
| Modifier and Type | Method and Description |
|---|---|
static Version |
getDefaultXMCDAv2Version() |
static void |
main(String[] args) |
protected static XMCDA |
readXMCDA_noValidation(InputStream inputStream,
String... tagsOnly) |
static XMCDA |
readXMCDA(File file)
Reads an XMCDA file and builds the corresponding
XMCDA object. |
static XMCDA |
readXMCDA(File file,
String... tagsOnly)
Reads an XMCDA file and builds the corresponding
XMCDA object from it, keeping the tags in tagsOnly only (all others are filtered out). |
protected static XMCDA |
readXMCDA(InputStream inputStream,
String... tagsOnly) |
static XMCDA |
readXMCDA(String filename) |
static XMCDA |
readXMCDA(String filename,
String... tagsOnly)
Reads an XMCDA file and builds the corresponding
XMCDA object from it, keeping the tags in tagsOnly only. |
static Set<String> |
rootTags(XMCDA xmcda_v2)
Returns the list of the root tags present in
xmcda_v2. |
static void |
setDefaultXMCDAv2Version(Version version) |
static void |
validate(File file) |
protected static void |
validate(InputStream inputStream) |
protected static void |
validate(StreamSource streamSource) |
static void |
writeXMCDA(XMCDA xmcda,
File file) |
static void |
writeXMCDA(XMCDA xmcda,
File file,
String... tagsOnly) |
static void |
writeXMCDA(XMCDA xmcda,
File file,
Version version,
String... tagsOnly) |
static void |
writeXMCDA(XMCDA xmcda,
String filename) |
static void |
writeXMCDA(XMCDA xmcda,
String filename,
String... tagsOnly) |
protected static int readXMCDAInputStreamMaxSize
#readXMCDA(XMCDA, InputStream, Set, String...)public static final String XMCDAv2_VERSION
public static XMCDA readXMCDA(String filename) throws IOException, JAXBException, SAXException
IOExceptionJAXBExceptionSAXExceptionpublic static XMCDA readXMCDA(String filename, String... tagsOnly) throws IOException, JAXBException, SAXException
XMCDA object from it, keeping the tags in tagsOnly only.filename - the name of the XMCDA file to readtagsOnly - the list of tags that should be read from the filetagsOnly are filtered out.FileNotFoundExceptionJAXBExceptionSAXExceptionIOExceptionpublic static XMCDA readXMCDA(File file) throws JAXBException, IOException, SAXException
XMCDA object.file - the XMCDA file to readJAXBExceptionFileNotFoundExceptionSAXExceptionIOExceptionpublic static XMCDA readXMCDA(File file, String... tagsOnly) throws IOException, JAXBException, SAXException
XMCDA object from it, keeping the tags in tagsOnly only (all others are filtered out).file - the XMCDA v2 file to read and loadtagsOnly - a list of XMCDA root tags to keepXMCDA v2 objectIOExceptionJAXBExceptionSAXExceptionpublic static void validate(File file) throws IOException, SAXException
IOExceptionSAXExceptionprotected static void validate(InputStream inputStream) throws IOException, SAXException
IOExceptionSAXExceptionprotected static void validate(StreamSource streamSource) throws IOException, SAXException
IOExceptionSAXExceptionprotected static XMCDA readXMCDA(InputStream inputStream, String... tagsOnly) throws IOException, JAXBException, SAXException
IOExceptionJAXBExceptionSAXExceptionprotected static XMCDA readXMCDA_noValidation(InputStream inputStream, String... tagsOnly) throws JAXBException
JAXBExceptionpublic static Version getDefaultXMCDAv2Version()
public static void setDefaultXMCDAv2Version(Version version)
public static void writeXMCDA(XMCDA xmcda, String filename) throws JAXBException
JAXBExceptionpublic static void writeXMCDA(XMCDA xmcda, String filename, String... tagsOnly) throws JAXBException
JAXBExceptionpublic static void writeXMCDA(XMCDA xmcda, File file) throws JAXBException
JAXBExceptionpublic static void writeXMCDA(XMCDA xmcda, File file, String... tagsOnly) throws JAXBException
JAXBExceptionpublic static void writeXMCDA(XMCDA xmcda, File file, Version version, String... tagsOnly) throws JAXBException
JAXBExceptionpublic static Set<String> rootTags(XMCDA xmcda_v2)
xmcda_v2.xmcda_v2 - the XMCDA v2 object to examinexmcda_v2Copyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.