private void writeTimeStamp( int timestamp, final MapOrListWriterImpl writer, String fieldName, boolean isList) { DateTime dateTime = new DateTime(timestamp); TimeWriter t; if (isList == false) { t = writer.map.time(fieldName); } else { t = writer.list.time(); } t.writeTime((int) (dateTime.withZoneRetainFields(org.joda.time.DateTimeZone.UTC).getMillis())); }
@Override public void addInt(int value) { holder.value = value; writer.write(holder); }