コード例 #1
0
 public void writeNumber(long l) throws IOException, JsonGenerationException {
   // up to 20 digits, minus sign
   _verifyValueWrite("write number");
   if ((_outputTail + 21) >= _outputEnd) {
     _flushBuffer();
   }
   _outputTail = NumberOutput.outputLong(l, _outputBuffer, _outputTail);
 }
コード例 #2
0
 public void writeNumber(int i) throws IOException, JsonGenerationException {
   _verifyValueWrite("write number");
   // up to 10 digits, minus sign
   if ((_outputTail + 11) >= _outputEnd) {
     _flushBuffer();
   }
   _outputTail = NumberOutput.outputInt(i, _outputBuffer, _outputTail);
 }