org.apache.jackrabbit.examples
Class FSImport

java.lang.Object
  extended byorg.apache.jackrabbit.examples.FSImport

public class FSImport
extends java.lang.Object

The First Steps example class.


Constructor Summary
FSImport()
           
 
Method Summary
static void dump(javax.jcr.Node node)
          Dumps the contents of the given node to standard output.
static void importFile(javax.jcr.Node parentnode, java.io.File file)
          Imports a File.
static void main(java.lang.String[] args)
          Run the Filesystem Import example.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSImport

public FSImport()
Method Detail

main

public static void main(java.lang.String[] args)
Run the Filesystem Import example.

Parameters:
args - command line arguments

importFile

public static void importFile(javax.jcr.Node parentnode,
                              java.io.File file)
                       throws javax.jcr.RepositoryException,
                              java.io.IOException
Imports a File.

Parameters:
parentnode - Parent Repository Node
file - File to be imported
Throws:
javax.jcr.RepositoryException - on repository errors, IOException on io errors
java.io.IOException

dump

public static void dump(javax.jcr.Node node)
                 throws javax.jcr.RepositoryException
Dumps the contents of the given node to standard output.

Parameters:
node - the node to be dumped
Throws:
javax.jcr.RepositoryException - on repository errors


Copyright © 2005 The Apache Software Foundation. All Rights Reserved.