<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Stringtree 2.0.6</title>
	<atom:link href="http://blog.stringtree.org/2007/04/17/stringtree-206/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stringtree.org/2007/04/17/stringtree-206/</link>
	<description>Stringtree Development News</description>
	<pubDate>Wed, 19 Nov 2008 23:51:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: JÃ¶rn Zaefferer</title>
		<link>http://blog.stringtree.org/2007/04/17/stringtree-206/#comment-2311</link>
		<dc:creator>JÃ¶rn Zaefferer</dc:creator>
		<pubDate>Wed, 18 Apr 2007 13:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=8#comment-2311</guid>
		<description>Oh well, that won't help a lot either. I've uploaded a complete example: http://fuzz.bassistance.de/Controller.java</description>
		<content:encoded><![CDATA[<p>Oh well, that won&#8217;t help a lot either. I&#8217;ve uploaded a complete example: <a href="http://fuzz.bassistance.de/Controller.java" rel="nofollow">http://fuzz.bassistance.de/Controller.java</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JÃ¶rn Zaefferer</title>
		<link>http://blog.stringtree.org/2007/04/17/stringtree-206/#comment-2310</link>
		<dc:creator>JÃ¶rn Zaefferer</dc:creator>
		<pubDate>Wed, 18 Apr 2007 13:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=8#comment-2310</guid>
		<description>Correction, its not the GZIPOutputStreamWriter. For reference:

try {
	ByteArrayOutputStream baos = new ByteArrayOutputStream();
	OutputStream zos = new GZIPOutputStream(baos);
	OutputStreamWriter writer = new OutputStreamWriter(zos);
	writer.write(value);
	writer.close();
	zos.close();
	baos.close();
	return baos.toByteArray();
} catch (IOException e) {
	throw new RuntimeException(e);
}</description>
		<content:encoded><![CDATA[<p>Correction, its not the GZIPOutputStreamWriter. For reference:</p>
<p>try {<br />
	ByteArrayOutputStream baos = new ByteArrayOutputStream();<br />
	OutputStream zos = new GZIPOutputStream(baos);<br />
	OutputStreamWriter writer = new OutputStreamWriter(zos);<br />
	writer.write(value);<br />
	writer.close();<br />
	zos.close();<br />
	baos.close();<br />
	return baos.toByteArray();<br />
} catch (IOException e) {<br />
	throw new RuntimeException(e);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JÃ¶rn Zaefferer</title>
		<link>http://blog.stringtree.org/2007/04/17/stringtree-206/#comment-2309</link>
		<dc:creator>JÃ¶rn Zaefferer</dc:creator>
		<pubDate>Wed, 18 Apr 2007 13:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stringtree.org/?p=8#comment-2309</guid>
		<description>I've just tested 2.0.6. I can't run it out-of-the-box on 1.4, I'm getting an exception from the classloader complaining about differences in mjaor/minor versions. Could you compile your jars with 1.4 class compability?

Concerning features: I'd find it extremely useful if you could add support for GZIP compressing JSON into the writer. It must be configurable (based on the Accept-Encoding request header). Support for gzip compression is built into at least 1.4, so there is no additional dependency. But using the GZIPOutputStreamWriter directly is just plain ugly. Converting my JSON to an bytearray and back to a compressed string takes about 12 line of client code... I'd add that support using factory methods, eg.
new JSONWriter().write("usuall stuff")
JSONWriter.validating().write("validated")
JSONWRiter.compressing().write("compressed")
JSONWriter.validating().compressing().write("both validated and compressed!")

I'm sure you can come up with a nice API, I really like what I've seen so far.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just tested 2.0.6. I can&#8217;t run it out-of-the-box on 1.4, I&#8217;m getting an exception from the classloader complaining about differences in mjaor/minor versions. Could you compile your jars with 1.4 class compability?</p>
<p>Concerning features: I&#8217;d find it extremely useful if you could add support for GZIP compressing JSON into the writer. It must be configurable (based on the Accept-Encoding request header). Support for gzip compression is built into at least 1.4, so there is no additional dependency. But using the GZIPOutputStreamWriter directly is just plain ugly. Converting my JSON to an bytearray and back to a compressed string takes about 12 line of client code&#8230; I&#8217;d add that support using factory methods, eg.<br />
new JSONWriter().write(&#8221;usuall stuff&#8221;)<br />
JSONWriter.validating().write(&#8221;validated&#8221;)<br />
JSONWRiter.compressing().write(&#8221;compressed&#8221;)<br />
JSONWriter.validating().compressing().write(&#8221;both validated and compressed!&#8221;)</p>
<p>I&#8217;m sure you can come up with a nice API, I really like what I&#8217;ve seen so far.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
