Java Code Examples for com.google.gson.stream.JsonWriter#value()
The following examples show how to use
com.google.gson.stream.JsonWriter#value() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpeechWordConfidenceTypeAdapter.java From java-sdk with Apache License 2.0 | 5 votes |
@Override public void write(JsonWriter writer, SpeechWordConfidence speechWordConfidence) throws IOException { writer.beginArray(); writer.value(speechWordConfidence.getWord()); writer.value(speechWordConfidence.getConfidence()); writer.endArray(); writer.flush(); }
Example 2
Source File: JSON.java From huaweicloud-cs-sdk with Apache License 2.0 | 5 votes |
@Override public void write(JsonWriter out, Date date) throws IOException { if (date == null) { out.nullValue(); } else { String value; if (dateFormat != null) { value = dateFormat.format(date); } else { value = ISO8601Utils.format(date, true); } out.value(value); } }
Example 3
Source File: WordTimingTypeAdapter.java From java-sdk with Apache License 2.0 | 5 votes |
@Override public void write(JsonWriter out, WordTiming wordTiming) throws IOException { out.beginArray(); out.value(wordTiming.getWord()); out.value(wordTiming.getStartTime()); out.value(wordTiming.getEndTime()); out.endArray(); out.flush(); }
Example 4
Source File: InstrumentName.java From v20-java with MIT License | 4 votes |
@Override public void write(JsonWriter out, InstrumentName obj) throws IOException { out.value(obj.toString()); }
Example 5
Source File: ExternalDatabaseServerTemplate.java From director-sdk with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 6
Source File: OuterEnum.java From openapi-generator with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final OuterEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 7
Source File: DeploymentTemplate.java From director-sdk with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final JavaInstallationStrategyEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 8
Source File: WarningInfo.java From director-sdk with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final WarningCodeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 9
Source File: OrderSpecifier.java From v20-java with MIT License | 4 votes |
@Override public void write(JsonWriter out, OrderSpecifier obj) throws IOException { out.value(obj.toString()); }
Example 10
Source File: EnumTest.java From openapi-generator with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final EnumStringEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 11
Source File: VersionedFunnel.java From nifi-swagger-client with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final ComponentTypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 12
Source File: LineageRequestDTO.java From nifi-swagger-client with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final LineageRequestTypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 13
Source File: OuterEnum.java From openapi-generator with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final OuterEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 14
Source File: ExternalDatabase.java From director-sdk with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 15
Source File: TypeAdapters.java From gson with Apache License 2.0 | 4 votes |
@Override public void write(JsonWriter out, AtomicBoolean value) throws IOException { out.value(value.get()); }
Example 16
Source File: Pet.java From openapi-generator with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 17
Source File: Cluster.java From director-sdk with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final InnerEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 18
Source File: HTTPNotificationEndpoint.java From influxdb-client-java with MIT License | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final AuthMethodEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }
Example 19
Source File: WrapTypeAdapters.java From SimpleProject with MIT License | 4 votes |
@Override public void write(JsonWriter out, String value) throws IOException { out.value(value); }
Example 20
Source File: CharacterRolesResponse.java From eve-esi with Apache License 2.0 | 4 votes |
@Override public void write(final JsonWriter jsonWriter, final RolesAtOtherEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); }