Package org.meeuw.json
Class Util
- java.lang.Object
-
- org.meeuw.json.Util
-
public class Util extends Object
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStreamgetInput(String[] argv, int pos)static com.fasterxml.jackson.core.JsonFactorygetJsonFactory()static com.fasterxml.jackson.core.JsonParsergetJsonParser(InputStream in)static com.fasterxml.jackson.core.JsonParsergetJsonParser(Reader in)static com.fasterxml.jackson.core.JsonParsergetJsonParser(String string)static OutputStreamgetOutput(String[] argv, int pos)protected static voidsetJsonParserOptions(com.fasterxml.jackson.core.JsonParser jp)static voidwrite(Object map, OutputStream writer)static voidwrite(Object map, Writer writer)static voidwrite(Map<String,Object> map, com.fasterxml.jackson.core.JsonGenerator gen)
-
-
-
Method Detail
-
getJsonParser
public static com.fasterxml.jackson.core.JsonParser getJsonParser(InputStream in)
-
getJsonParser
public static com.fasterxml.jackson.core.JsonParser getJsonParser(Reader in)
-
getJsonParser
public static com.fasterxml.jackson.core.JsonParser getJsonParser(String string) throws IOException
- Throws:
IOException
-
write
public static void write(Object map, OutputStream writer)
-
write
public static void write(Map<String,Object> map, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
- Throws:
IOException
-
getInput
public static InputStream getInput(String[] argv, int pos) throws IOException
- Throws:
IOException
-
getOutput
public static OutputStream getOutput(String[] argv, int pos) throws IOException
- Throws:
IOException
-
setJsonParserOptions
protected static void setJsonParserOptions(com.fasterxml.jackson.core.JsonParser jp)
-
getJsonFactory
public static com.fasterxml.jackson.core.JsonFactory getJsonFactory()
-
-