Class XmlAnalyzer
- java.lang.Object
-
- org.apache.jackrabbit.vault.sync.impl.XmlAnalyzer
-
public class XmlAnalyzer extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SerializationTypeanalyze(InputSource source)Analyzes the given source.
-
-
-
Method Detail
-
analyze
public static SerializationType analyze(InputSource source) throws IOException
Analyzes the given source.- Parameters:
source- the source to analyze- Returns:
- the serialization type
- Throws:
IOException- if an I/O error occurs
-
-