Package ca.uhn.fhir.parser.json.jackson
Class JacksonWriter
- java.lang.Object
-
- ca.uhn.fhir.parser.json.JsonLikeWriter
-
- ca.uhn.fhir.parser.json.jackson.JacksonWriter
-
public class JacksonWriter extends JsonLikeWriter
-
-
Constructor Summary
Constructors Constructor Description JacksonWriter()JacksonWriter(com.fasterxml.jackson.core.JsonFactory theJsonFactory, Writer theWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonLikeWriterbeginArray(String name)JsonLikeWriterbeginObject()JsonLikeWriterbeginObject(String name)voidclose()JsonLikeWriterendArray()JsonLikeWriterendBlock()JsonLikeWriterendObject()JsonLikeWriterflush()JsonLikeWriterinit()JsonLikeWriterwrite(boolean value)JsonLikeWriterwrite(double value)JsonLikeWriterwrite(long value)JsonLikeWriterwrite(Boolean value)JsonLikeWriterwrite(String value)JsonLikeWriterwrite(String name, boolean value)JsonLikeWriterwrite(String name, double value)JsonLikeWriterwrite(String name, long value)JsonLikeWriterwrite(String name, Boolean value)JsonLikeWriterwrite(String name, String value)JsonLikeWriterwrite(String name, BigDecimal value)JsonLikeWriterwrite(String name, BigInteger value)JsonLikeWriterwrite(BigDecimal value)JsonLikeWriterwrite(BigInteger value)JsonLikeWriterwriteNull()-
Methods inherited from class ca.uhn.fhir.parser.json.JsonLikeWriter
getWriter, isPrettyPrint, setPrettyPrint, setWriter
-
-
-
-
Constructor Detail
-
JacksonWriter
public JacksonWriter(com.fasterxml.jackson.core.JsonFactory theJsonFactory, Writer theWriter) throws IOException
- Throws:
IOException
-
JacksonWriter
public JacksonWriter()
-
-
Method Detail
-
init
public JsonLikeWriter init()
- Specified by:
initin classJsonLikeWriter
-
flush
public JsonLikeWriter flush()
- Specified by:
flushin classJsonLikeWriter
-
close
public void close() throws IOException
- Specified by:
closein classJsonLikeWriter- Throws:
IOException
-
beginObject
public JsonLikeWriter beginObject() throws IOException
- Specified by:
beginObjectin classJsonLikeWriter- Throws:
IOException
-
beginObject
public JsonLikeWriter beginObject(String name) throws IOException
- Specified by:
beginObjectin classJsonLikeWriter- Throws:
IOException
-
beginArray
public JsonLikeWriter beginArray(String name) throws IOException
- Specified by:
beginArrayin classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(String value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(BigInteger value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(BigDecimal value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(long value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(double value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(Boolean value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(boolean value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
writeNull
public JsonLikeWriter writeNull() throws IOException
- Specified by:
writeNullin classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(String name, String value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(String name, BigInteger value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(String name, BigDecimal value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(String name, long value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(String name, double value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(String name, Boolean value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
write
public JsonLikeWriter write(String name, boolean value) throws IOException
- Specified by:
writein classJsonLikeWriter- Throws:
IOException
-
endObject
public JsonLikeWriter endObject() throws IOException
- Specified by:
endObjectin classJsonLikeWriter- Throws:
IOException
-
endArray
public JsonLikeWriter endArray() throws IOException
- Specified by:
endArrayin classJsonLikeWriter- Throws:
IOException
-
endBlock
public JsonLikeWriter endBlock() throws IOException
- Specified by:
endBlockin classJsonLikeWriter- Throws:
IOException
-
-