|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.cnd.CndImporter
@NotThreadSafe public class CndImporter

A class that imports the node types contained in a JCR Compact Node Definition (CND) file into graph content. The content is
written using the graph structured defined by JCR and the "nt:nodeType", "nt:propertyDefinition", and "nt:childNodeDefinition" node types.
Although instances of this class never change their behavior and all processing is done in local contexts, Destination
is not thread-safe and therefore this component may not be considered thread-safe.
| Constructor Summary | |
|---|---|
CndImporter(Destination destination,
Path parentPath)
Create a new importer that will place the content in the supplied destination under the supplied path. |
|
| Method Summary | |
|---|---|
void |
importFrom(File file,
Problems problems)
Import the CND content from the supplied stream, placing the content into the importer's destination. |
void |
importFrom(InputStream stream,
Problems problems,
String resourceName)
Import the CND content from the supplied stream, placing the content into the importer's destination. |
void |
importFrom(String content,
Problems problems,
String resourceName)
Import the CND content from the supplied stream, placing the content into the importer's destination. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CndImporter(Destination destination,
Path parentPath)
destination - the destination where content is to be writtenparentPath - the path in the destination below which the generated content is to appear
IllegalArgumentException - if either parameter is null| Method Detail |
|---|
public void importFrom(InputStream stream,
Problems problems,
String resourceName)
throws IOException
stream - the stream containing the CND contentproblems - where any problems encountered during import should be reportedresourceName - a logical name for the resource name to be used when reporting problems; may be null if there is no
useful name
IOException - if there is a problem reading from the supplied stream
public void importFrom(String content,
Problems problems,
String resourceName)
throws IOException
content - the string containing the CND contentproblems - where any problems encountered during import should be reportedresourceName - a logical name for the resource name to be used when reporting problems; may be null if there is no
useful name
IOException - if there is a problem reading from the supplied stream
public void importFrom(File file,
Problems problems)
throws IOException
file - the file containing the CND contentproblems - where any problems encountered during import should be reported
IOException - if there is a problem reading from the supplied stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||