Class StandardDocumentProvider
java.lang.Object
org.apache.nifi.xml.processing.parsers.StandardDocumentProvider
- All Implemented Interfaces:
DocumentProvider
Standard implementation of Document Provider with secure processing enabled
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate DocumentBuilderFactory
protected boolean
Create new Documentparse
(InputStream inputStream) Build and return DocumentBuildervoid
setErrorHandler
(ErrorHandler errorHandler) Set Error Handlervoid
setNamespaceAware
(boolean namespaceAware) Set Namespace Aware status on DocumentBuilderFactoryvoid
Set Namespace Aware status on DocumentBuilderFactory
-
Field Details
-
namespaceAware
private boolean namespaceAware -
schema
-
errorHandler
-
-
Constructor Details
-
StandardDocumentProvider
public StandardDocumentProvider()
-
-
Method Details
-
setErrorHandler
Set Error Handler- Parameters:
errorHandler
- Error Handler
-
setNamespaceAware
public void setNamespaceAware(boolean namespaceAware) Set Namespace Aware status on DocumentBuilderFactory- Parameters:
namespaceAware
- Namespace Awareness
-
setSchema
Set Namespace Aware status on DocumentBuilderFactory- Parameters:
schema
- Schema for validation or null to disable validation
-
newDocument
Description copied from interface:DocumentProvider
Create new Document- Specified by:
newDocument
in interfaceDocumentProvider
- Returns:
- Document
-
parse
Build and return DocumentBuilder- Specified by:
parse
in interfaceDocumentProvider
- Parameters:
inputStream
- InputStream to be parsed- Returns:
- DocumentBuilder configured using provided properties
-
isDisallowDocumentTypeDeclaration
protected boolean isDisallowDocumentTypeDeclaration() -
getDocumentBuilderFactory
-