org.crsh.jcr
Class Importer
java.lang.Object
org.crsh.jcr.Importer
- All Implemented Interfaces:
- FileSystem
-
public class Importer
- extends Object
-
- implements FileSystem
-
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 |
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
-
.
Importer
public Importer(ContentHandler handler)
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.