public class SnapshotFactoryImpl extends Object implements SnapshotFactory.Implementation
| Constructor and Description |
|---|
SnapshotFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
IOQLQuery |
createQuery(String queryString)
Run an OQL query
|
void |
dispose(ISnapshot snapshot)
Free resources when the snapshot is no longer needed.
|
List<SnapshotFormat> |
getSupportedFormats()
Show which parsers the factory handles
|
ISnapshot |
openSnapshot(File file,
Map<String,String> args,
IProgressListener listener)
Opens a snapshot
|
public ISnapshot openSnapshot(File file, Map<String,String> args, IProgressListener listener) throws SnapshotException
SnapshotFactory.ImplementationopenSnapshot in interface SnapshotFactory.Implementationfile - the dump fileargs - extra arguments to change the indexing of the dumplistener - to show progress and errorsSnapshotExceptionpublic void dispose(ISnapshot snapshot)
SnapshotFactory.ImplementationISnapshot.dispose() if the snapshot is obtained from SnapshotFactory.Implementation.openSnapshot(File, Map, IProgressListener)
as openSnapshot() may obtain a copy from a cache.dispose in interface SnapshotFactory.Implementationpublic IOQLQuery createQuery(String queryString) throws SnapshotException
SnapshotFactory.ImplementationcreateQuery in interface SnapshotFactory.ImplementationqueryString - the OQL queryOQLParseExceptionSnapshotExceptionpublic List<SnapshotFormat> getSupportedFormats()
SnapshotFactory.ImplementationgetSupportedFormats in interface SnapshotFactory.Implementation