public class StandardDocumentProvider extends Object implements DocumentProvider
| Modifier and Type | Field and Description |
|---|---|
private ErrorHandler |
errorHandler |
private boolean |
namespaceAware |
private Schema |
schema |
| Constructor and Description |
|---|
StandardDocumentProvider() |
| Modifier and Type | Method and Description |
|---|---|
private DocumentBuilderFactory |
getDocumentBuilderFactory() |
protected boolean |
isDisallowDocumentTypeDeclaration() |
Document |
newDocument()
Create new Document
|
Document |
parse(InputStream inputStream)
Build and return DocumentBuilder
|
void |
setErrorHandler(ErrorHandler errorHandler)
Set Error Handler
|
void |
setNamespaceAware(boolean namespaceAware)
Set Namespace Aware status on DocumentBuilderFactory
|
void |
setSchema(Schema schema)
Set Namespace Aware status on DocumentBuilderFactory
|
private boolean namespaceAware
private Schema schema
private ErrorHandler errorHandler
public void setErrorHandler(ErrorHandler errorHandler)
errorHandler - Error Handlerpublic void setNamespaceAware(boolean namespaceAware)
namespaceAware - Namespace Awarenesspublic void setSchema(Schema schema)
schema - Schema for validation or null to disable validationpublic Document newDocument()
DocumentProvidernewDocument in interface DocumentProviderpublic Document parse(InputStream inputStream)
parse in interface DocumentProviderinputStream - InputStream to be parsedprotected boolean isDisallowDocumentTypeDeclaration()
private DocumentBuilderFactory getDocumentBuilderFactory()
Copyright © 2022 Apache NiFi Project. All rights reserved.