Package org.openprovenance.prov.json
Class Converter
- java.lang.Object
-
- org.openprovenance.prov.json.Converter
-
public class Converter extends Object
-
-
Constructor Summary
Constructors Constructor Description Converter(ProvFactory pFactory)
-
Method Summary
Modifier and Type Method Description DocumentfromString(String jsonStr)StringgetString(Document doc)DocumentreadDocument(InputStream is)DocumentreadDocument(String file)voidwriteDocument(Document doc, Writer out)voidwriteDocument(Document doc, String file)
-
-
-
Constructor Detail
-
Converter
public Converter(ProvFactory pFactory)
-
-
Method Detail
-
readDocument
public Document readDocument(String file) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, IOException
- Throws:
com.google.gson.JsonSyntaxExceptioncom.google.gson.JsonIOExceptionIOException
-
readDocument
public Document readDocument(InputStream is) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, IOException
- Throws:
com.google.gson.JsonSyntaxExceptioncom.google.gson.JsonIOExceptionIOException
-
writeDocument
public void writeDocument(Document doc, String file) throws IOException
- Throws:
IOException
-
writeDocument
public void writeDocument(Document doc, Writer out) throws IOException
- Throws:
IOException
-
-