Package | Description |
---|---|
org.openprovenance.prov.interop |
Provides the classes necessary to convert the PROV Data Model in Java to any PROV-compatible serialization and back.
|
Modifier and Type | Field and Description |
---|---|
Hashtable<InteropFramework.ProvFormat,String> |
InteropFramework.extensionMap |
Hashtable<String,InteropFramework.ProvFormat> |
InteropFramework.extensionRevMap |
Hashtable<InteropFramework.ProvFormat,String> |
InteropFramework.mimeTypeMap |
Hashtable<String,InteropFramework.ProvFormat> |
InteropFramework.mimeTypeRevMap |
Hashtable<InteropFramework.ProvFormat,InteropFramework.ProvFormatType> |
InteropFramework.provTypeMap |
Modifier and Type | Method and Description |
---|---|
InteropFramework.ProvFormat |
InteropFramework.getTypeForFile(String filename)
Get a
InteropFramework.ProvFormat given the file's exetension |
InteropFramework.ProvFormat |
InteropFramework.getTypeForFormat(String format)
Get a
InteropFramework.ProvFormat given a format string |
static InteropFramework.ProvFormat |
InteropFramework.ProvFormat.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InteropFramework.ProvFormat[] |
InteropFramework.ProvFormat.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
String |
InteropFramework.getExtension(InteropFramework.ProvFormat format)
Returns an extension for a given type of serialization of PROV
|
Boolean |
InteropFramework.isInputFormat(InteropFramework.ProvFormat format)
Determines whether this format received as argument is an input format.
|
Boolean |
InteropFramework.isOutputFormat(InteropFramework.ProvFormat format)
Determines whether this format received as argument is an output format.
|
Document |
InteropFramework.readDocument(InputStream is,
InteropFramework.ProvFormat format,
ProvFactory pFactory,
String baseuri)
Reads a Document from an input stream, using the parser specified by the format argument.
|
Document |
InteropFramework.readDocument(InputStream is,
InteropFramework.ProvFormat format,
String baseuri)
Reads a Document from an input stream, using the parser specified by the format argument.
|
Document |
InteropFramework.readDocumentFromFile(String filename,
InteropFramework.ProvFormat format)
Reads a document from a file, using the format to decide which parser to read the file with.
|
void |
InteropFramework.writeDocument(OutputStream os,
InteropFramework.ProvFormat format,
Document document)
Write a
Document to output stream, according to specified InteropFramework.ProvFormat |
void |
InteropFramework.writeDocument(String filename,
InteropFramework.ProvFormat format,
Document document)
Write a
Document to file, serialized according to the file extension |
Modifier and Type | Method and Description |
---|---|
void |
InteropFramework.initializeExtensionMap(Hashtable<InteropFramework.ProvFormat,String> extensionMap,
Hashtable<String,InteropFramework.ProvFormat> extensionRevMap)
Initialization function
|
void |
InteropFramework.initializeExtensionMap(Hashtable<InteropFramework.ProvFormat,String> extensionMap,
Hashtable<String,InteropFramework.ProvFormat> extensionRevMap)
Initialization function
|
Copyright © 2016. All rights reserved.