public class SaxImportManager extends AbstractImportManager
actioner, allowUpdates, currentPosition, framedGraph, importerClass, permissionScope, tolerant
Constructor and Description |
---|
SaxImportManager(com.tinkerpop.frames.FramedGraph<?> graph,
PermissionScope scope,
Actioner actioner,
boolean tolerant,
boolean allowUpdates,
Class<? extends ItemImporter> importerClass,
Class<? extends SaxXmlHandler> handlerClass,
List<ImportCallback> callbacks)
Constructor.
|
SaxImportManager(com.tinkerpop.frames.FramedGraph<?> graph,
PermissionScope scope,
Actioner actioner,
boolean tolerant,
boolean allowUpdates,
Class<? extends ItemImporter> importerClass,
Class<? extends SaxXmlHandler> handlerClass,
XmlImportProperties properties)
Constructor.
|
SaxImportManager(com.tinkerpop.frames.FramedGraph<?> graph,
PermissionScope scope,
Actioner actioner,
boolean tolerant,
boolean allowUpdates,
Class<? extends ItemImporter> importerClass,
Class<? extends SaxXmlHandler> handlerClass,
XmlImportProperties properties,
List<ImportCallback> callbacks)
Constructor.
|
SaxImportManager(com.tinkerpop.frames.FramedGraph<?> graph,
PermissionScope scope,
Actioner actioner,
Class<? extends ItemImporter> importerClass,
Class<? extends SaxXmlHandler> handlerClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SaxImportManager |
allowUpdates(boolean allowUpdates) |
protected void |
importInputStream(InputStream stream,
String tag,
ActionManager.EventContext context,
ImportLog log)
Import XML from the given InputStream, as part of the given action.
|
SaxImportManager |
setTolerant(boolean tolerant) |
SaxImportManager |
withCallback(ImportCallback callback) |
SaxImportManager |
withProperties(String properties) |
SaxImportManager |
withScope(PermissionScope scope) |
importArchive, importFile, importFiles, importInputStream, isTolerant
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importInputStream
public SaxImportManager(com.tinkerpop.frames.FramedGraph<?> graph, PermissionScope scope, Actioner actioner, boolean tolerant, boolean allowUpdates, Class<? extends ItemImporter> importerClass, Class<? extends SaxXmlHandler> handlerClass, XmlImportProperties properties, List<ImportCallback> callbacks)
graph
- the framed graphscope
- the permission scopeactioner
- the actionerpublic SaxImportManager(com.tinkerpop.frames.FramedGraph<?> graph, PermissionScope scope, Actioner actioner, boolean tolerant, boolean allowUpdates, Class<? extends ItemImporter> importerClass, Class<? extends SaxXmlHandler> handlerClass, List<ImportCallback> callbacks)
graph
- the framed graphscope
- a permission scopeactioner
- the actionerpublic SaxImportManager(com.tinkerpop.frames.FramedGraph<?> graph, PermissionScope scope, Actioner actioner, boolean tolerant, boolean allowUpdates, Class<? extends ItemImporter> importerClass, Class<? extends SaxXmlHandler> handlerClass, XmlImportProperties properties)
graph
- the framed graphscope
- a permission scopeactioner
- the actionerpublic SaxImportManager(com.tinkerpop.frames.FramedGraph<?> graph, PermissionScope scope, Actioner actioner, Class<? extends ItemImporter> importerClass, Class<? extends SaxXmlHandler> handlerClass)
graph
- the framed graphscope
- a permission scopeactioner
- the actionerprotected void importInputStream(InputStream stream, String tag, ActionManager.EventContext context, ImportLog log) throws IOException, ValidationError, InputParseError
importInputStream
in class AbstractImportManager
stream
- an input streamcontext
- the event contextlog
- a logger objecttag
- an optional tag identifying the source of the streamIOException
ValidationError
InputParseError
public SaxImportManager withProperties(String properties)
public SaxImportManager setTolerant(boolean tolerant)
public SaxImportManager allowUpdates(boolean allowUpdates)
public SaxImportManager withScope(PermissionScope scope)
public SaxImportManager withCallback(ImportCallback callback)
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.