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.GENERIC
if the source is not a valid XML -
SerializationType.XML_GENERIC
if the XML type is not known. eg. a user-xml -
SerializationType.XML_DOCVIEW
if the XML is a docview serialization
-
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SerializationType
analyze(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
-
-