Class XmlAnalyzer
java.lang.Object
org.apache.jackrabbit.vault.sync.impl.XmlAnalyzer
Analyzes a xml source and guesses the type. the following types are
recognized:
-
SerializationType.GENERICif the source is not a valid XML -
SerializationType.XML_GENERICif the XML type is not known. eg. a user-xml -
SerializationType.XML_DOCVIEWif the XML is a docview serialization
-
Method Summary
Modifier and TypeMethodDescriptionstatic SerializationTypeanalyze(InputSource source) Analyzes the given source.
-
Method Details
-
analyze
Analyzes the given source.- Parameters:
source- the source to analyze- Returns:
- the serialization type
- Throws:
IOException- if an I/O error occurs
-