Examples of writeNumber()


Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

            {
                g.writeStartObject();
                g.writeNumberField("generation", level);
                g.writeArrayFieldStart("members");
                for (SSTableReader ssTableReader : generations[level])
                    g.writeNumber(ssTableReader.descriptor.generation);
                g.writeEndArray(); // members

                g.writeEndObject(); // generation
            }
            g.writeEndArray(); // for field generations
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

    public void testWrapppingNumberAndString() throws Exception {
        StringWriter sw = new StringWriter();
        JsonGenerator g = (new JsonFactory()).createJsonGenerator(sw);
        JsonGenerator awg = JacksonArrayWrapperGenerator.createArrayWrapperGenerator(g);
        awg.writeNumber(2);
        awg.writeString("string");
        awg.close();
        assertEquals("[2,\"string\"]",sw.toString());
    }
}
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

            {
                g.writeStartObject();
                g.writeNumberField("generation", level);
                g.writeArrayFieldStart("members");
                for (SSTableReader ssTableReader : generations[level])
                    g.writeNumber(ssTableReader.descriptor.generation);
                g.writeEndArray(); // members

                g.writeEndObject(); // generation
            }
            g.writeEndArray(); // for field generations
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

            {
                g.writeStartObject();
                g.writeNumberField("generation", level);
                g.writeArrayFieldStart("members");
                for (SSTableReader ssTableReader : generations[level])
                    g.writeNumber(ssTableReader.descriptor.generation);
                g.writeEndArray(); // members

                g.writeEndObject(); // generation
            }
            g.writeEndArray(); // for field generations
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

            {
                g.writeStartObject();
                g.writeNumberField("generation", level);
                g.writeArrayFieldStart("members");
                for (SSTableReader ssTableReader : generations[level])
                    g.writeNumber(ssTableReader.descriptor.generation);
                g.writeEndArray(); // members

                g.writeEndObject(); // generation
            }
            g.writeEndArray(); // for field generations
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

        JsonGenerator gen = new Utf8Generator(ioc, 0, null, bytes);
        String str = "Natuurlijk is alles gelukt en weer een tevreden klant\uD83D\uDE04";
        int length = 4000 - 38;

        for (int i = 1; i <= length; ++i) {
            gen.writeNumber(1);
        }
        gen.writeString(str);
        gen.flush();
    }
}
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

            {
                g.writeStartObject();
                g.writeNumberField("generation", level);
                g.writeArrayFieldStart("members");
                for (SSTableReader ssTableReader : generations[level])
                    g.writeNumber(ssTableReader.descriptor.generation);
                g.writeEndArray(); // members

                g.writeEndObject(); // generation
            }
            g.writeEndArray(); // for field generations
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

            schema.getFieldName(fieldNumber);
       
        if(repeated)
        {
            generator.writeArrayFieldStart(name);
            generator.writeNumber(value);
        }
        else
            generator.writeNumberField(name, value);
       
        lastNumber = fieldNumber;
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

            schema.getFieldName(fieldNumber);
       
        if(repeated)
        {
            generator.writeArrayFieldStart(name);
            generator.writeNumber(value);
        }
        else
            generator.writeNumberField(name, value);
       
        lastNumber = fieldNumber;
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeNumber()

            schema.getFieldName(fieldNumber);
       
        if(repeated)
        {
            generator.writeArrayFieldStart(name);
            generator.writeNumber(value);
        }
        else
            generator.writeNumberField(name, value);
       
        lastNumber = fieldNumber;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.