public class Converter extends Object
Constructor and Description |
---|
Converter(ProvFactory pFactory) |
Modifier and Type | Method and Description |
---|---|
Document |
fromString(String jsonStr) |
String |
getString(Document doc) |
Document |
readDocument(InputStream is) |
Document |
readDocument(String file) |
void |
writeDocument(Document doc,
String file) |
void |
writeDocument(Document doc,
Writer out) |
public Converter(ProvFactory pFactory)
public Document readDocument(String file) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, FileNotFoundException
com.google.gson.JsonSyntaxException
com.google.gson.JsonIOException
FileNotFoundException
public Document readDocument(InputStream is) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, FileNotFoundException
com.google.gson.JsonSyntaxException
com.google.gson.JsonIOException
FileNotFoundException
public void writeDocument(Document doc, String file) throws IOException
IOException
public void writeDocument(Document doc, Writer out) throws IOException
IOException
Copyright © 2016. All rights reserved.