@Override public StructuredJsonGenerator writeValue(boolean bool) { try { writer.writeBool(bool); } catch (IOException e) { throw new SdkClientException(e); } return this; }
@Override public StructuredJsonGenerator writeValue(boolean bool) { try { writer.writeBool(bool); } catch (IOException e) { throw new SdkClientException(e); } return this; }
@Override final void writeBodyTo(IonWriter writer, SymbolTableProvider symbolTableProvider) throws IOException { if (isNullValue()) { writer.writeNull(IonType.BOOL); } else { writer.writeBool(_isBoolTrue()); } }
/** * writes an IonList with a series of IonBool values. This * starts a List, writes the values (without any annoations) * and closes the list. For text and tree writers this is * just a convienience, but for the binary writer it can be * optimized internally. * @param values boolean values to populate the list with */ public static void writeBoolList(IonWriter writer, boolean[] values) throws IOException { if (writer instanceof PrivateListWriter) { ((PrivateListWriter)writer).writeBoolList(values); return; } writer.stepIn(IonType.LIST); for (int ii=0; ii<values.length; ii++) { writer.writeBool(values[ii]); } writer.stepOut(); }
@Override public StructuredJsonGenerator writeValue(boolean bool) { try { writer.writeBool(bool); } catch (IOException e) { throw new SdkClientException(e); } return this; }
@Override public StructuredJsonGenerator writeValue(boolean bool) { try { writer.writeBool(bool); } catch (IOException e) { throw SdkClientException.builder().cause(e).build(); } return this; }
@Override public StructuredJsonGenerator writeValue(boolean bool) { try { writer.writeBool(bool); } catch (IOException e) { throw SdkClientException.builder().cause(e).build(); } return this; }
@Override public void writeBoolean(boolean value) throws IOException, JsonGenerationException { _verifyValueWrite("write boolean"); _writer.writeBool(value); }
@Override final void writeBodyTo(IonWriter writer, SymbolTableProvider symbolTableProvider) throws IOException { if (isNullValue()) { writer.writeNull(IonType.BOOL); } else { writer.writeBool(_isBoolTrue()); } }
@Override final void writeBodyTo(IonWriter writer, SymbolTableProvider symbolTableProvider) throws IOException { if (isNullValue()) { writer.writeNull(IonType.BOOL); } else { writer.writeBool(_isBoolTrue()); } }
/** * writes an IonList with a series of IonBool values. This * starts a List, writes the values (without any annoations) * and closes the list. For text and tree writers this is * just a convienience, but for the binary writer it can be * optimized internally. * @param values boolean values to populate the list with */ public static void writeBoolList(IonWriter writer, boolean[] values) throws IOException { if (writer instanceof PrivateListWriter) { ((PrivateListWriter)writer).writeBoolList(values); return; } writer.stepIn(IonType.LIST); for (int ii=0; ii<values.length; ii++) { writer.writeBool(values[ii]); } writer.stepOut(); }
/** * writes an IonList with a series of IonBool values. This * starts a List, writes the values (without any annoations) * and closes the list. For text and tree writers this is * just a convienience, but for the binary writer it can be * optimized internally. * @param values boolean values to populate the list with */ public static void writeBoolList(IonWriter writer, boolean[] values) throws IOException { if (writer instanceof PrivateListWriter) { ((PrivateListWriter)writer).writeBoolList(values); return; } writer.stepIn(IonType.LIST); for (int ii=0; ii<values.length; ii++) { writer.writeBool(values[ii]); } writer.stepOut(); }