org.crsh.jcr
Class Importer

java.lang.Object
  extended by org.crsh.jcr.Importer
All Implemented Interfaces:
FileSystem

public class Importer
extends Object
implements FileSystem


Nested Class Summary
private static class Importer.EndElement
           
 
Field Summary
private  org.xml.sax.helpers.DefaultHandler attributesHandler
          .
private  ContentHandler handler
          .
private static Logger log
          .
private  List<String> prefixes
          .
private  LinkedList<Importer.EndElement> stack
          .
 
Constructor Summary
Importer(ContentHandler handler)
           
 
Method Summary
 void beginDirectory(String directoryName)
           
 void endDirectory(String directoryName)
           
 void file(String fileName, int length, InputStream data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final Logger log
.


handler

private final ContentHandler handler
.


stack

private final LinkedList<Importer.EndElement> stack
.


prefixes

private final List<String> prefixes
.


attributesHandler

private final org.xml.sax.helpers.DefaultHandler attributesHandler
.

Constructor Detail

Importer

public Importer(ContentHandler handler)
Method Detail

beginDirectory

public void beginDirectory(String directoryName)
                    throws IOException
Specified by:
beginDirectory in interface FileSystem
Throws:
IOException

file

public void file(String fileName,
                 int length,
                 InputStream data)
          throws IOException
Specified by:
file in interface FileSystem
Throws:
IOException

endDirectory

public void endDirectory(String directoryName)
                  throws IOException
Specified by:
endDirectory in interface FileSystem
Throws:
IOException


Copyright © 2014 eXo Platform SAS. All Rights Reserved.