org.jboss.dna.graph.util
Class GraphImporter.UriImportedContent

java.lang.Object
  extended by org.jboss.dna.graph.util.GraphImporter.ImportedContentUsingSequencer
      extended by org.jboss.dna.graph.util.GraphImporter.UriImportedContent
All Implemented Interfaces:
GraphImporter.ImportSpecification
Enclosing class:
GraphImporter

@Immutable
protected class GraphImporter.UriImportedContent
extends GraphImporter.ImportedContentUsingSequencer


Constructor Summary
protected GraphImporter.UriImportedContent(StreamSequencer sequencer, URI uri, String mimeType)
           
 
Method Summary
 String getMimeType()
           
 URI getUri()
           
 void into(String sourceName, Path pathInSource)
          Specify the location where the content is to be imported, and then perform the import.
 
Methods inherited from class org.jboss.dna.graph.util.GraphImporter.ImportedContentUsingSequencer
getConflictBehavior, getSequencer, into
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphImporter.UriImportedContent

protected GraphImporter.UriImportedContent(StreamSequencer sequencer,
                                           URI uri,
                                           String mimeType)
Method Detail

getMimeType

public String getMimeType()
Returns:
mimeType

getUri

public URI getUri()
Returns:
uri

into

public void into(String sourceName,
                 Path pathInSource)
          throws IOException,
                 RepositorySourceException
Specify the location where the content is to be imported, and then perform the import.

Parameters:
sourceName - the name of the source into which the content is to be imported
pathInSource - the path in the repository source named sourceName where the content is to be written; may not be null
Throws:
IOException - if there is a problem reading the content
RepositorySourceException - if there is a problem while writing the content to the repository source
See Also:
GraphImporter.ImportSpecification.into(java.lang.String, org.jboss.dna.graph.properties.Path)


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.