public class JcrXmlImporter extends Object
Constructor and Description |
---|
JcrXmlImporter() |
Modifier and Type | Method and Description |
---|---|
protected javax.jcr.Node |
importJcrXml(javax.jcr.Node parent,
String name,
InputStream contentStream,
boolean replace)
Import the XML file as JCR system or document view import.
|
protected javax.jcr.Node importJcrXml(javax.jcr.Node parent, String name, InputStream contentStream, boolean replace) throws IOException
false
is returned.parent
- The parent node below which to importname
- the name of the import resourcecontentStream
- The XML content to importreplace
- Whether or not to replace the subtree at name if the
node exists.true
if the import succeeds, false
if the import fails due to XML format errors.IOException
- If an IO error occurrs reading the XML file.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.