<?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>web development helpdesk &#187; stream</title>
	<atom:link href="http://helpdesk.objects.com.au/tag/stream/feed" rel="self" type="application/rss+xml" />
	<link>http://helpdesk.objects.com.au</link>
	<description>objects quality - the visible difference</description>
	<lastBuildDate>Sun, 17 Jul 2011 12:27:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Unzip a file using Java</title>
		<link>http://helpdesk.objects.com.au/java/unzip-a-file-using-java?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unzip-a-file-using-java</link>
		<comments>http://helpdesk.objects.com.au/java/unzip-a-file-using-java#comments</comments>
		<pubDate>Thu, 26 May 2011 02:28:47 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[decompress]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[stream]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[zip]]></category>
		<category><![CDATA[ZipInputStream]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1855</guid>
		<description><![CDATA[Java provides the ZipInputStream class for reading from a zip file. Heres a general example of its usage File file = new File(&#34;my.zip&#34;); ZipInputStream zin = new ZipInputStream(new FileInputStream(file)); ZipEntry ze = null; while ((ze = zin.getNextEntry()) != null) { String filename = ze.getName(); if (!ze.isDirectory()) { // Read file contents from &#039;zin&#039; // For [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/unzip-a-file-using-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Runtime.exec locks up and process never completes</title>
		<link>http://helpdesk.objects.com.au/java/runtime-exec-locks-up?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=runtime-exec-locks-up</link>
		<comments>http://helpdesk.objects.com.au/java/runtime-exec-locks-up#comments</comments>
		<pubDate>Tue, 24 Mar 2009 12:33:08 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[hang]]></category>
		<category><![CDATA[locked up]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[Runtime]]></category>
		<category><![CDATA[stderr]]></category>
		<category><![CDATA[stdout]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=909</guid>
		<description><![CDATA[You need to read any output from standard output or standard error when running a process using Runtime.exec(). If you don&#8217;t the buffers may fill up causing the process to lock up. The following code can be used to handle reading the process output, and the linked article provides a lot of great insight into [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/runtime-exec-locks-up/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How do I write a BufferedImage to an output stream?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-write-a-bufferedimage-to-an-output-stream?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-do-i-write-a-bufferedimage-to-an-output-stream</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-write-a-bufferedimage-to-an-output-stream#comments</comments>
		<pubDate>Wed, 03 Dec 2008 00:37:08 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[BufferedImage]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=580</guid>
		<description><![CDATA[The ImageIO class provides utility classes for both read and writing images. To write your image to an output stream you would can use the write method telling it what format you want to write the image in, eg. JPEG, PNG. ImageIO.write(image, &#34;PNG&#34;, out); Related posts: How do I read an image from an input [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-write-a-bufferedimage-to-an-output-stream/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How do I copy one stream to another using Java?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-copy-one-stream-to-another-using-java?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-do-i-copy-one-stream-to-another-using-java</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-copy-one-stream-to-another-using-java#comments</comments>
		<pubDate>Sun, 19 Oct 2008 20:26:36 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[InputStream]]></category>
		<category><![CDATA[OutputStream]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=676</guid>
		<description><![CDATA[You need to read all bytes from source stream to the destination. The read() method will return -1 when eof is reached, otherwise it returns the number of bytes read. public static void copy(InputStream in, OutputStream out int bufferSize) throws IOException { // Read bytes and write to destination until eof byte[] buf = new [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-copy-one-stream-to-another-using-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I convert a Java Image to a png byte array?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-convert-a-java-image-to-a-png-byte-array?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-do-i-convert-a-java-image-to-a-png-byte-array</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-convert-a-java-image-to-a-png-byte-array#comments</comments>
		<pubDate>Mon, 29 Sep 2008 02:08:22 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=282</guid>
		<description><![CDATA[The ImageIO class can be used to write an image as a PNG encoded stream.If you write that stream to a ByteArrayOutputStream then you will end up with a byte array that contains the PNG encoded image. ByteArrayOutputStream out = new ByteArrayOutputStream(); ImageIO.write(image, &#34;PNG&#34;, out); byte[] imageBytes = out.toByteArray(); Related posts: How do I convert [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-convert-a-java-image-to-a-png-byte-array/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I convert a Java image to a jpeg encoded byte array?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-convert-a-java-image-to-a-jpeg-encoded-byte-array?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-do-i-convert-a-java-image-to-a-jpeg-encoded-byte-array</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-convert-a-java-image-to-a-jpeg-encoded-byte-array#comments</comments>
		<pubDate>Mon, 29 Sep 2008 00:19:59 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[jpeg]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=278</guid>
		<description><![CDATA[The ImageIO class can be used to write an image as a JPEG encoded stream.If you write that stream to a ByteArrayOutputStream then you will end up with a byte array that contains the JPEG encoded image. ByteArrayOutputStream out = new ByteArrayOutputStream(); ImageIO.write(image, &#34;JPEG&#34;, out); byte[] imageBytes = out.toByteArray(); Related posts: How do I convert [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-convert-a-java-image-to-a-jpeg-encoded-byte-array/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I read an image from an input stream?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-read-an-image-from-an-input-stream?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-do-i-read-an-image-from-an-input-stream</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-read-an-image-from-an-input-stream#comments</comments>
		<pubDate>Tue, 23 Sep 2008 23:17:26 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=207</guid>
		<description><![CDATA[The ImageIO class provides a number of methods for reading images from different sources. // Get the input stream to read the image from // NB. getImageStream() is an arbitrary method // thats returns the input stream to read the // image from InputStream in = getImageStream(); // load the image from the stream BufferedImage [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-read-an-image-from-an-input-stream/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

