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 toDocViewSAXFormatter
but works outside a repository-based context on the input generated throughContentHandler
callbacks. ThrowsDocViewSerializerContentHandlerException
in 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 void
close()
void
closeParents(String stopAtParent)
void
resource(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:
resource
in interfaceorg.apache.sling.contentparser.api.ContentHandler
-
closeParents
public void closeParents(String stopAtParent)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
-