Class DocViewSerializerContentHandler
- java.lang.Object
-
- org.apache.sling.feature.cpconverter.vltpkg.DocViewSerializerContentHandler
-
- All Implemented Interfaces:
AutoCloseable,org.apache.sling.contentparser.api.ContentHandler
public class DocViewSerializerContentHandler extends Object implements org.apache.sling.contentparser.api.ContentHandler, AutoCloseable
Similar toDocViewSAXFormatterbut works outside a repository-based context on the input generated throughContentHandlercallbacks. ThrowsDocViewSerializerContentHandlerExceptionin case serialization fails for some reason.
-
-
Constructor Summary
Constructors Constructor Description DocViewSerializerContentHandler(OutputStream outputStream, JcrNamespaceRegistry nsRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcloseParents(String stopAtParent)voidresource(String path, Map<String,Object> properties)
-
-
-
Constructor Detail
-
DocViewSerializerContentHandler
public DocViewSerializerContentHandler(OutputStream outputStream, JcrNamespaceRegistry nsRegistry)
-
-
Method Detail
-
resource
public void resource(String path, Map<String,Object> properties)
- Specified by:
resourcein interfaceorg.apache.sling.contentparser.api.ContentHandler
-
closeParents
public void closeParents(String stopAtParent)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-