<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Johan Känngård &#187; Java</title>
	<atom:link href="http://johankanngard.net/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://johankanngard.net</link>
	<description>Useful tips for developers</description>
	<lastBuildDate>Thu, 19 May 2011 18:40:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>String to InputStream</title>
		<link>http://johankanngard.net/2006/02/09/string-to-inputstream/</link>
		<comments>http://johankanngard.net/2006/02/09/string-to-inputstream/#comments</comments>
		<pubDate>Thu, 09 Feb 2006 16:15:44 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://johankanngard.net/2006/02/09/string-to-inputstream/</guid>
		<description><![CDATA[Arguments in many methods in the Java APIs are of the type InputStream. This is how to get an InputStream from a String, where argument to getBytes, UTF-8, is the encoding to use: InputStream is = new ByteArrayInputStream(myString.getBytes(\"UTF-8\")); [tags]Java[/tags]]]></description>
			<content:encoded><![CDATA[<p>Arguments in many methods in the Java APIs are of the type InputStream. This is how to get an InputStream from a String, where argument to getBytes, UTF-8, is the encoding to use:<br />
<code><br />
InputStream is = new ByteArrayInputStream(myString.getBytes(\"UTF-8\"));<br />
</code><br />
[tags]Java[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2006/02/09/string-to-inputstream/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

