Package org.fugerit.java.doc.base.parser
Interface DocParser
- All Known Implementing Classes:
AbstractDocParser,DocXmlParser
public interface DocParser
Class implementing the parsing and validation of doc source
- Author:
- fugerit
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the source type handled by this parserparse(InputStream is) Parse a sourceParse a sourceintValidate a sourcevalidateResult(Reader reader) Validate a sourceintvalidateVersion(Reader reader) Validate a source, it tries to find the xsd version and validate against the specific versionvalidateVersionResult(Reader reader) Validate a source, it tries to find the xsd version and validate against the specific version
-
Method Details
-
getSourceType
int getSourceType()Returns the source type handled by this parser- Returns:
- the
intrepresentation of the source type handled by this parserDocFacadeSource
-
parse
Parse a source- Parameters:
is- the source stream- Returns:
- the parsed document
- Throws:
DocException- in case of problems
-
parse
Parse a source- Parameters:
reader- the source reader- Returns:
- the parsed document
- Throws:
DocException- in case of problems
-
validateResult
Validate a source- Parameters:
reader- the source reader- Returns:
- the result of the validation
- Throws:
DocException- in case of problems
-
validate
Validate a source- Parameters:
reader- the source reader- Returns:
- the result of the validation (
0in case of success) - Throws:
DocException- in case of problems
-
validateVersionResult
Validate a source, it tries to find the xsd version and validate against the specific version- Parameters:
reader- the source reader- Returns:
- the result of the validation
- Throws:
DocException- in case of problems
-
validateVersion
Validate a source, it tries to find the xsd version and validate against the specific version- Parameters:
reader- the source reader- Returns:
- the result of the validation as an
int(0in case of success) - Throws:
DocException- in case of problems
-