Class NodeTypeWriter
- java.lang.Object
-
- org.apache.jackrabbit.core.nodetype.xml.NodeTypeWriter
-
public final class NodeTypeWriter extends Object
Node type definition writer. This class is used to write the persistent node type definition files used by Jackrabbit.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
write(OutputStream xml, QNodeTypeDefinition[] types, NamespaceRegistry registry)
Writes a node type definition file.
-
-
-
Method Detail
-
write
public static void write(OutputStream xml, QNodeTypeDefinition[] types, NamespaceRegistry registry) throws IOException, RepositoryException
Writes a node type definition file. The file contents are written to the given output stream and will contain the given node type definitions. The given namespace registry is used for namespace mappings.- Parameters:
xml
- XML output streamregistry
- namespace registrytypes
- node types- Throws:
IOException
- if the node type definitions cannot be writtenRepositoryException
- on repository errors
-
-