@ProviderType
public interface ContentImporter
ContentImporter service
This interface is not intended to be implemented by bundles. It is implemented by this bundle and may be used by client bundles.
| Modifier and Type | Method and Description |
|---|---|
void |
importContent(javax.jcr.Node parent,
java.lang.String filename,
java.io.InputStream contentStream,
ImportOptions importOptions,
ContentImportListener importListener)
Import content into the repository by parsing the provided content stream.
|
void |
importContent(javax.jcr.Node parent,
java.lang.String name,
java.lang.String contentType,
java.io.InputStream contentStream,
ImportOptions importOptions,
ContentImportListener importListener)
Import content into the repository by parsing the provided content stream.
|
void importContent(javax.jcr.Node parent,
java.lang.String filename,
java.io.InputStream contentStream,
ImportOptions importOptions,
ContentImportListener importListener)
throws javax.jcr.RepositoryException,
java.io.IOException
parent - the root node for the imported contentfilename - the name of the imported content. Becomes the node name (without extension). The file extension determines the content type.contentStream - the content stream to be importedimportOptions - (optional) additional options to control the importimportListener - (optional) listener to receive callbacks for each change in the importjavax.jcr.RepositoryExceptionjava.io.IOExceptionvoid importContent(javax.jcr.Node parent,
java.lang.String name,
java.lang.String contentType,
java.io.InputStream contentStream,
ImportOptions importOptions,
ContentImportListener importListener)
throws javax.jcr.RepositoryException,
java.io.IOException
parent - the root node for the imported contentname - the name of the imported content. Becomes the node name. If null, imports in PARENT_NODE import mode.contentType - the content type of the content streamcontentStream - the content stream to be importedimportOptions - (optional) additional options to control the importimportListener - (optional) listener to receive callbacks for each change in the importjavax.jcr.RepositoryExceptionjava.io.IOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.