Let me explain my use case. There is a JsonGenerator wrapped around a Writer:
JsonFactory factory; JsonGenerator generator; Writer writer; generator = jsonFactory.createGenerator(writer); Let the generator write something into its inner buffer, e.g. it's method writeStartObject() was called, but the generator didn't call writer.write(). Now the program realises that written data are wrong, so it needs clear the generator's inner buffer, but not flush the buffer into the writer. Program is going to use the same generator after the buffer will be cleared. How can this be accomplished? Thanks! -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
