public class OfflineImporter extends Object
Constructor and Description |
---|
OfflineImporter(Node parent,
InputStream stream)
Deprecated.
|
OfflineImporter(Node parent,
RequestParameter rp)
Creates an importer for importing the given Word document to the given
target node.
|
Modifier and Type | Method and Description |
---|---|
void |
importDocument()
Imports the document to the given target node.
|
void |
setConfig(ValueMap config) |
void |
setFilename(String filename) |
void |
setResourceType(String resourceType) |
void |
setTemplate(String template) |
public OfflineImporter(Node parent, InputStream stream) throws IOException, TextImportException
parent
- parent node under which the imported pages are createdstream
- stream containing the Word documentIOException
- if the Word document could not be loadedTextImportException
- if the document uses an unknown formatpublic OfflineImporter(Node parent, RequestParameter rp) throws IOException, TextImportException
parent
- parent node under which the imported pages are createdrp
- sling request parameter containing the documentIOException
- if the Word document could not be loadedTextImportException
- if the document uses an unknown formatpublic void setFilename(String filename)
public void setResourceType(String resourceType)
public void setTemplate(String template)
public void importDocument() throws RepositoryException
RepositoryException
- if a repository error occurspublic void setConfig(ValueMap config)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"