
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 JsonLikeWriter
beginArray(String name)
JsonLikeWriter
beginObject()
JsonLikeWriter
beginObject(String name)
void
close()
JsonLikeWriter
endArray()
JsonLikeWriter
endBlock()
JsonLikeWriter
endObject()
JsonLikeWriter
flush()
JsonLikeWriter
init()
JsonLikeWriter
write(boolean value)
JsonLikeWriter
write(double value)
JsonLikeWriter
write(long value)
JsonLikeWriter
write(Boolean value)
JsonLikeWriter
write(String value)
JsonLikeWriter
write(String name, boolean value)
JsonLikeWriter
write(String name, double value)
JsonLikeWriter
write(String name, long value)
JsonLikeWriter
write(String name, Boolean value)
JsonLikeWriter
write(String name, String value)
JsonLikeWriter
write(String name, BigDecimal value)
JsonLikeWriter
write(String name, BigInteger value)
JsonLikeWriter
write(BigDecimal value)
JsonLikeWriter
write(BigInteger value)
JsonLikeWriter
writeNull()
-
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:
init
in classJsonLikeWriter
-
flush
public JsonLikeWriter flush()
- Specified by:
flush
in classJsonLikeWriter
-
close
public void close() throws IOException
- Specified by:
close
in classJsonLikeWriter
- Throws:
IOException
-
beginObject
public JsonLikeWriter beginObject() throws IOException
- Specified by:
beginObject
in classJsonLikeWriter
- Throws:
IOException
-
beginObject
public JsonLikeWriter beginObject(String name) throws IOException
- Specified by:
beginObject
in classJsonLikeWriter
- Throws:
IOException
-
beginArray
public JsonLikeWriter beginArray(String name) throws IOException
- Specified by:
beginArray
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(String value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(BigInteger value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(BigDecimal value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(long value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(double value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(Boolean value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(boolean value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
writeNull
public JsonLikeWriter writeNull() throws IOException
- Specified by:
writeNull
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(String name, String value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(String name, BigInteger value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(String name, BigDecimal value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(String name, long value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(String name, double value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(String name, Boolean value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
write
public JsonLikeWriter write(String name, boolean value) throws IOException
- Specified by:
write
in classJsonLikeWriter
- Throws:
IOException
-
endObject
public JsonLikeWriter endObject() throws IOException
- Specified by:
endObject
in classJsonLikeWriter
- Throws:
IOException
-
endArray
public JsonLikeWriter endArray() throws IOException
- Specified by:
endArray
in classJsonLikeWriter
- Throws:
IOException
-
endBlock
public JsonLikeWriter endBlock() throws IOException
- Specified by:
endBlock
in classJsonLikeWriter
- Throws:
IOException
-
-