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.JsonSyntaxExceptioncom.google.gson.JsonIOExceptionFileNotFoundExceptionpublic Document readDocument(InputStream is) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, FileNotFoundException
com.google.gson.JsonSyntaxExceptioncom.google.gson.JsonIOExceptionFileNotFoundExceptionpublic void writeDocument(Document doc, String file) throws IOException
IOExceptionpublic void writeDocument(Document doc, Writer out) throws IOException
IOExceptionCopyright © 2016. All rights reserved.