artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

ObjectGenerator #124

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://code.google.com/p/google-http-java-client/issues/detail?id=112

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

We should have an ObjectGenerator that does for serialization what ObjectParser 
does for parsing.  It should look roughly like this:

public interface ObjectGenerator {

  void generate(OutputStream out, Charset charset, boolean closeStream, Object item) throws IOException;

  void generate(Writer writer, Charset charset, boolean closeWriter, Object item) throws IOException;
}

We may also implement ObjectGeneratorContent extends AbstractHttpContent that 
accepts an ObjectGenerator.

Original issue reported on code.google.com by yan...@google.com on 31 May 2012 at 12:46

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 2 Aug 2012 at 12:14

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 26 Sep 2012 at 12:16

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 14 Jan 2013 at 3:26