Package ca.uhn.fhir.parser.json
Class GsonWriter
- java.lang.Object
-
- ca.uhn.fhir.parser.json.JsonLikeWriter
-
- ca.uhn.fhir.parser.json.GsonWriter
-
public class GsonWriter extends JsonLikeWriter
-
-
Constructor Summary
Constructors Constructor Description GsonWriter()GsonWriter(Writer writer)
-
Method Summary
-
Methods inherited from class ca.uhn.fhir.parser.json.JsonLikeWriter
getWriter, isPrettyPrint, setPrettyPrint, setWriter
-
-
-
-
Constructor Detail
-
GsonWriter
public GsonWriter()
-
GsonWriter
public GsonWriter(Writer writer)
-
-
Method Detail
-
init
public JsonLikeWriter init() throws IOException
- Specified by:
initin classJsonLikeWriter- Throws:
IOException
-
flush
public JsonLikeWriter flush() throws IOException
- Specified by:
flushin classJsonLikeWriter- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
closein classJsonLikeWriter- Throws:
IOException
-
beginObject
public JsonLikeWriter beginObject() throws IOException
- Specified by:
beginObjectin classJsonLikeWriter- Throws:
IOException
-
beginArray
public JsonLikeWriter beginArray() throws IOException
- Specified by:
beginArrayin 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
-
writeNull
public JsonLikeWriter writeNull(String name) throws IOException
- Specified by:
writeNullin 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
-
-