public final class RestDocParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
createMapper() |
static RestDoc |
parseFile(File json) |
static RestDoc |
parseResource(String name) |
static RestDoc |
parseString(String json) |
static String |
writeRestDoc(RestDoc doc) |
public static RestDoc parseString(String json) throws IOException
json - RestDocIOExceptionpublic static RestDoc parseFile(File json) throws IOException
json - RestDocIOExceptionpublic static RestDoc parseResource(String name) throws IOException
name - RestDocIOExceptionpublic static String writeRestDoc(RestDoc doc) throws IOException
doc - the RestDoc objectIOExceptionpublic static com.fasterxml.jackson.databind.ObjectMapper createMapper()
Copyright © 2012-2014 RestDoc org. All Rights Reserved.