Home
last modified time | relevance | path

Searched refs:writeNumber (Results 1 – 25 of 70) sorted by relevance

123

/external/jackson-core/src/main/java/com/fasterxml/jackson/core/
DJsonGenerator.java955 writeNumber(array[i]); in writeArray()
979 writeNumber(array[i]); in writeArray()
1003 writeNumber(array[i]); in writeArray()
1336 public void writeNumber(short v) throws IOException { writeNumber((int) v); } in writeNumber() method in JsonGenerator
1347 public abstract void writeNumber(int v) throws IOException; in writeNumber() method in JsonGenerator
1358 public abstract void writeNumber(long v) throws IOException; in writeNumber() method in JsonGenerator
1369 public abstract void writeNumber(BigInteger v) throws IOException; in writeNumber() method in JsonGenerator
1380 public abstract void writeNumber(double v) throws IOException; in writeNumber() method in JsonGenerator
1391 public abstract void writeNumber(float v) throws IOException; in writeNumber() method in JsonGenerator
1402 public abstract void writeNumber(BigDecimal v) throws IOException; in writeNumber() method in JsonGenerator
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/
DGeneratorFeaturesTest.java120 g.writeNumber(ENG); in testBigDecimalAsPlain()
127 g.writeNumber(ENG); in testBigDecimalAsPlain()
142 g.writeNumber(ENG); in testBigDecimalAsPlainString()
149 g.writeNumber(ENG); in testBigDecimalAsPlainString()
182 g.writeNumber(BIG); in testTooBigBigDecimal()
183 g.writeNumber(SMALL); in testTooBigBigDecimal()
198 g.writeNumber(input); in testTooBigBigDecimal()
222 g.writeNumber(1); in _writeNumbers()
223 g.writeNumber(2L); in _writeNumbers()
224 g.writeNumber((short) 3); in _writeNumbers()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/util/
DTestDefaultPrettyPrinter.java95 gen.writeNumber(1); in testRootSeparator()
96 gen.writeNumber(2); in testRootSeparator()
97 gen.writeNumber(3); in testRootSeparator()
105 gen.writeNumber(1); in testRootSeparator()
106 gen.writeNumber(2); in testRootSeparator()
107 gen.writeNumber(3); in testRootSeparator()
120 gen.writeNumber(1); in testRootSeparator()
122 gen.writeNumber(2); in testRootSeparator()
126 gen.writeNumber(3); in testRootSeparator()
153 gen.writeNumber(3.14); in _printTestData()
DTestDelegates.java331 del.writeNumber(13); in testGeneratorDelegate()
332 del.writeNumber(BigInteger.ONE); in testGeneratorDelegate()
333 del.writeNumber(new BigDecimal(0.5)); in testGeneratorDelegate()
334 del.writeNumber("137"); in testGeneratorDelegate()
393 del.writeNumber((short) 1); in testGeneratorDelegateComments()
394 del.writeNumber(12L); in testGeneratorDelegateComments()
395 del.writeNumber(0.25); in testGeneratorDelegateComments()
396 del.writeNumber(0.5f); in testGeneratorDelegateComments()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/filter/
DBasicGeneratorFilteringTest.java202 gen.writeNumber(123); in _testSingleMatchFilteringWithPathAlternate1()
206 gen.writeNumber("1"); in _testSingleMatchFilteringWithPathAlternate1()
207 gen.writeNumber((short) 2); in _testSingleMatchFilteringWithPathAlternate1()
260 gen.writeNumber((short) 1); in testSingleMatchFilteringWithPathRawBinary()
261 gen.writeNumber((int) 2); in testSingleMatchFilteringWithPathRawBinary()
262 gen.writeNumber((long) 3); in testSingleMatchFilteringWithPathRawBinary()
263 gen.writeNumber(BigInteger.valueOf(4)); in testSingleMatchFilteringWithPathRawBinary()
265 gen.writeNumber(new BigDecimal("5.0")); in testSingleMatchFilteringWithPathRawBinary()
267 gen.writeNumber(6.25f); in testSingleMatchFilteringWithPathRawBinary()
268 gen.writeNumber(7.5); in testSingleMatchFilteringWithPathRawBinary()
[all …]
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/util/
DJsonGeneratorDelegate.java327 public void writeNumber(short v) throws IOException { delegate.writeNumber(v); } in writeNumber() method in JsonGeneratorDelegate
330 public void writeNumber(int v) throws IOException { delegate.writeNumber(v); } in writeNumber() method in JsonGeneratorDelegate
333 public void writeNumber(long v) throws IOException { delegate.writeNumber(v); } in writeNumber() method in JsonGeneratorDelegate
336 public void writeNumber(BigInteger v) throws IOException { delegate.writeNumber(v); } in writeNumber() method in JsonGeneratorDelegate
339 public void writeNumber(double v) throws IOException { delegate.writeNumber(v); } in writeNumber() method in JsonGeneratorDelegate
342 public void writeNumber(float v) throws IOException { delegate.writeNumber(v); } in writeNumber() method in JsonGeneratorDelegate
345 public void writeNumber(BigDecimal v) throws IOException { delegate.writeNumber(v); } in writeNumber() method in JsonGeneratorDelegate
348 …public void writeNumber(String encodedValue) throws IOException, UnsupportedOperationException { d… in writeNumber() method in JsonGeneratorDelegate
351 …lic void writeNumber(char[] encodedValueBuffer, int offset, int length) throws IOException, Unsupp… in writeNumber() method in JsonGeneratorDelegate
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/filter/
DFilteringGeneratorDelegate.java624 public void writeNumber(short v) throws IOException in writeNumber() method in FilteringGeneratorDelegate
641 delegate.writeNumber(v); in writeNumber()
645 public void writeNumber(int v) throws IOException in writeNumber() method in FilteringGeneratorDelegate
662 delegate.writeNumber(v); in writeNumber()
666 public void writeNumber(long v) throws IOException in writeNumber() method in FilteringGeneratorDelegate
683 delegate.writeNumber(v); in writeNumber()
687 public void writeNumber(BigInteger v) throws IOException in writeNumber() method in FilteringGeneratorDelegate
704 delegate.writeNumber(v); in writeNumber()
708 public void writeNumber(double v) throws IOException in writeNumber() method in FilteringGeneratorDelegate
725 delegate.writeNumber(v); in writeNumber()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/std/
DNumberSerializer.java74 g.writeNumber((BigDecimal) value); in serialize()
76 g.writeNumber((BigInteger) value); in serialize()
81 g.writeNumber(value.longValue()); in serialize()
83 g.writeNumber(value.doubleValue()); in serialize()
85 g.writeNumber(value.floatValue()); in serialize()
87 g.writeNumber(value.intValue()); // doesn't need to be cast to smaller numbers in serialize()
90 g.writeNumber(value.toString()); in serialize()
DNumberSerializers.java129 gen.writeNumber(((Short) value).shortValue()); in serialize()
152 gen.writeNumber(((Integer) value).intValue()); in serialize()
181 gen.writeNumber(((Number) value).intValue()); in serialize()
194 gen.writeNumber(((Long) value).longValue()); in serialize()
209 gen.writeNumber(((Float) value).floatValue()); in serialize()
229 gen.writeNumber(((Double) value).doubleValue()); in serialize()
244 g.writeNumber(d); in serializeWithType()
247 g.writeNumber(d); in serializeWithType()
DStdArraySerializers.java232 g.writeNumber((int)value[i]); in serializeContents()
397 g.writeNumber(value[i]); in serializeContents()
469 g.writeNumber(value[i]); in serializeContents()
547 g.writeNumber(value[i]); in serializeContents()
631 g.writeNumber(value[i]); in serializeContents()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DTestFormatSchema.java170 public void writeNumber(short v) throws IOException { } in writeNumber() method in TestFormatSchema.GeneratorWithSchema
173 public void writeNumber(int v) throws IOException { } in writeNumber() method in TestFormatSchema.GeneratorWithSchema
176 public void writeNumber(long v) throws IOException { } in writeNumber() method in TestFormatSchema.GeneratorWithSchema
179 public void writeNumber(BigInteger v) throws IOException { } in writeNumber() method in TestFormatSchema.GeneratorWithSchema
182 public void writeNumber(double d) throws IOException { } in writeNumber() method in TestFormatSchema.GeneratorWithSchema
185 public void writeNumber(float f) throws IOException { } in writeNumber() method in TestFormatSchema.GeneratorWithSchema
188 public void writeNumber(BigDecimal dec) throws IOException { } in writeNumber() method in TestFormatSchema.GeneratorWithSchema
191 public void writeNumber(String encodedValue) throws IOException { } in writeNumber() method in TestFormatSchema.GeneratorWithSchema
/external/geojson-jackson/src/main/java/org/geojson/jackson/
DLngLatAltSerializer.java16 jgen.writeNumber(value.getLongitude()); in serialize()
17 jgen.writeNumber(value.getLatitude()); in serialize()
19 jgen.writeNumber(value.getAltitude()); in serialize()
22 jgen.writeNumber(d); in serialize()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/util/
DTestTokenBuffer.java77 buf.writeNumber(13); in testSimpleWrites()
103 buf.writeNumber(v); in testSimpleNumberWrites()
106 buf.writeNumber(v); in testSimpleNumberWrites()
135 buf.writeNumber(big); in testNumberOverflowInt()
150 buf.writeNumber(String.valueOf(big)); in testNumberOverflowInt()
168 buf.writeNumber(big); in testNumberOverflowLong()
344 buf2.writeNumber(13); in testAppend()
422 buf.writeNumber(1); in testOutputContext()
423 gen.writeNumber(1); in testOutputContext()
438 buf.writeNumber(2); in testOutputContext()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DTokenBuffer.java412 gen.writeNumber((Integer) n); in serialize()
414 gen.writeNumber((BigInteger) n); in serialize()
416 gen.writeNumber((Long) n); in serialize()
418 gen.writeNumber((Short) n); in serialize()
420 gen.writeNumber(((Number) n).intValue()); in serialize()
428 gen.writeNumber(((Double) n).doubleValue()); in serialize()
430 gen.writeNumber((BigDecimal) n); in serialize()
432 gen.writeNumber(((Float) n).floatValue()); in serialize()
436 gen.writeNumber((String) n); in serialize()
853 public void writeNumber(short i) throws IOException { in writeNumber() method in TokenBuffer
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/
DGeneratorBasicTest.java147 gen.writeNumber(1); in _testRootIntsWrite()
148 gen.writeNumber((short) 2); // for test coverage in _testRootIntsWrite()
149 gen.writeNumber(-13); in _testRootIntsWrite()
229 gen.writeNumber(123); in testOutputContext()
234 gen.writeNumber(5); in testOutputContext()
253 gen.writeNumber(3); in testOutputContext()
305 gen.writeNumber(1234); // 4 bytes in _testOutputBuffered()
340 gen.writeNumber(VALUE); in doTestIntValueWrite()
350 gen.writeNumber(VALUE); in doTestIntValueWrite()
396 gen.writeNumber(VALUE); in doTestLongValueWrite()
[all …]
DUTF8GeneratorTest.java25 gen.writeNumber(1); in testUtf8Issue462()
86 gen.writeNumber((int) 123); in testFilteringWithEscapedChars()
90 gen.writeNumber((short) 1); in testFilteringWithEscapedChars()
91 gen.writeNumber((short) 2); in testFilteringWithEscapedChars()
DWriteTypeIdTest.java102 gen.writeNumber(13); in testBasicTypeIdWriteForArray()
103 gen.writeNumber(42); in testBasicTypeIdWriteForArray()
115 gen.writeNumber(13); in testBasicTypeIdWriteForArray()
116 gen.writeNumber(42); in testBasicTypeIdWriteForArray()
DPrettyPrinterTest.java82 gen.writeNumber(6); in testArrayCount()
84 gen.writeNumber(1); in testArrayCount()
85 gen.writeNumber(2); in testArrayCount()
86 gen.writeNumber(9); in testArrayCount()
152 gen.writeNumber(13); in testCustomRootSeparatorWithFactory()
266 gen.writeNumber(3); in _writeTestDocument()
DGeneratorCloseTest.java49 jg.writeNumber(39); in testNoAutoCloseGenerator()
65 jg.writeNumber(39); in testCloseGenerator()
80 jg.writeNumber(39); in testNoAutoCloseOutputStream()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ct/
DSignedCertificateTimestamp.java129 Serialization.writeNumber(output, version.ordinal(), CTConstants.VERSION_LENGTH); in encodeTBS()
130 Serialization.writeNumber(output, SignatureType.CERTIFICATE_TIMESTAMP.ordinal(), in encodeTBS()
132 Serialization.writeNumber(output, timestamp, CTConstants.TIMESTAMP_LENGTH); in encodeTBS()
DSerialization.java191 writeNumber(output, data.length, width); in writeVariableBytes()
216 public static void writeNumber(OutputStream output, long value, int width) in writeNumber() method in Serialization
/external/conscrypt/common/src/main/java/org/conscrypt/ct/
DSignedCertificateTimestamp.java118 Serialization.writeNumber(output, version.ordinal(), CTConstants.VERSION_LENGTH); in encodeTBS()
119 Serialization.writeNumber(output, SignatureType.CERTIFICATE_TIMESTAMP.ordinal(), in encodeTBS()
121 Serialization.writeNumber(output, timestamp, CTConstants.TIMESTAMP_LENGTH); in encodeTBS()
DSerialization.java187 writeNumber(output, data.length, width); in writeVariableBytes()
212 public static void writeNumber(OutputStream output, long value, int width) in writeNumber() method in Serialization
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DBeanSerializerModifierTest.java141 jgen.writeNumber(_value); in serialize()
197 jgen.writeNumber(123); in modifyArraySerializer()
209 jgen.writeNumber(123);
221 jgen.writeNumber(123);
233 jgen.writeNumber(123);
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/async/
DAsyncScalarArrayTest.java130 g.writeNumber(input[i]); in testLong()
177 g.writeNumber(input[i]); in testFloats()
219 g.writeNumber(input[i]); in testDoubles()
283 g.writeNumber(input[i]); in testBigIntegers()
335 g.writeNumber(input[i]); in testBigDecimals()

123