public class DocViewSerializerContentHandler extends Object implements org.apache.sling.contentparser.api.ContentHandler, AutoCloseable
DocViewSAXFormatter but works outside a repository-based context on the input generated through ContentHandler callbacks.
Throws DocViewSerializerContentHandlerException in case serialization fails for some reason.| Constructor and Description |
|---|
DocViewSerializerContentHandler(OutputStream outputStream,
JcrNamespaceRegistry nsRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeParents(String stopAtParent) |
void |
resource(String path,
Map<String,Object> properties) |
public DocViewSerializerContentHandler(OutputStream outputStream, JcrNamespaceRegistry nsRegistry)
public void resource(String path, Map<String,Object> properties)
resource in interface org.apache.sling.contentparser.api.ContentHandlerpublic void closeParents(String stopAtParent)
public void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.