<?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; file</title>
	<atom:link href="http://helpdesk.objects.com.au/tag/file/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>How to detect file type</title>
		<link>http://helpdesk.objects.com.au/java/how-to-detect-file-type?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-detect-file-type</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-detect-file-type#comments</comments>
		<pubDate>Thu, 14 Oct 2010 21:49:24 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[magic]]></category>
		<category><![CDATA[mime]]></category>
		<category><![CDATA[type]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1592</guid>
		<description><![CDATA[We often want to quickly identify the type of a file. The following two libraries help us achieve that goal. jMimeMagic jMimeMagic is a Java library for determining the MIME type of files or streams. Mime Type Detection Utility Enable Java programs to detect MIME types based on file extensions, magic data and content sniffing. [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-detect-file-type/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert a File to a URL</title>
		<link>http://helpdesk.objects.com.au/java/how-to-convert-a-file-to-a-url?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-a-file-to-a-url</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-convert-a-file-to-a-url#comments</comments>
		<pubDate>Fri, 11 Jun 2010 01:02:07 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[URI]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1504</guid>
		<description><![CDATA[Many developers use the toURL() method of the File class to convert a File to a URL. This method however does not handle correctly escaping characters that are illegal in URL’s (such as spaces) and has been deprecated. To convert a File to a URL you should instead first use the toURI() method to convert [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-convert-a-file-to-a-url/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Scanner to read words from text file</title>
		<link>http://helpdesk.objects.com.au/java/using-scanner-to-read-words-from-text-file?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-scanner-to-read-words-from-text-file</link>
		<comments>http://helpdesk.objects.com.au/java/using-scanner-to-read-words-from-text-file#comments</comments>
		<pubDate>Tue, 24 Nov 2009 02:23:30 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[Scanner]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[word]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1346</guid>
		<description><![CDATA[Often you need to read a file line by line. Alternatively sometimes you want to read text word by word (for example to count the occurrence of different words). The Scanner classes next() method can be used for this as shown in the following example. Scanner input = new Scanner(file); while(input.hasNext()) { String word = [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/using-scanner-to-read-words-from-text-file/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use native printing from Java</title>
		<link>http://helpdesk.objects.com.au/java/how-to-use-native-printing-from-java?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-native-printing-from-java</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-use-native-printing-from-java#comments</comments>
		<pubDate>Sat, 03 Oct 2009 09:17:28 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[native]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1254</guid>
		<description><![CDATA[The Desktop class was added in Java 6 to handle launching associated applications on the native desktop. Following shows how to print a file with the associated native printing facility. File file = new File(&#34;/tmp/file.txt&#34;); Desktop desktop = Desktop.getDesktop(); desktop.print(file); Related posts: How to launch default editor with Java 6 The Desktop class was added [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-use-native-printing-from-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to open file using default application</title>
		<link>http://helpdesk.objects.com.au/java/how-to-open-file-using-default-application?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-open-file-using-default-application</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-open-file-using-default-application#comments</comments>
		<pubDate>Sat, 03 Oct 2009 09:14:54 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[launch]]></category>
		<category><![CDATA[native]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1251</guid>
		<description><![CDATA[The Desktop class was added in Java 6 to handle launching associated applications on the native desktop. Following shows how to launch the associated application to open a file. File file = new File(&#34;/tmp/file.txt&#34;); Desktop desktop = Desktop.getDesktop(); desktop.open(file); Related posts: How to launch default mail application with Java 6 The Desktop class was added [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-open-file-using-default-application/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to launch default editor with Java 6</title>
		<link>http://helpdesk.objects.com.au/java/how-to-launch-default-editor-with-java-6?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-launch-default-editor-with-java-6</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-launch-default-editor-with-java-6#comments</comments>
		<pubDate>Sat, 03 Oct 2009 09:10:17 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[native]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1246</guid>
		<description><![CDATA[The Desktop class was added in Java 6 to handle launching associated applications on the native desktop. Following shows how to launch the associated editor application and open a file for editing. File file = new File(&#34;/tmp/file.txt&#34;); Desktop desktop = Desktop.getDesktop(); desktop.edit(file); Related posts: How to launch default mail application with Java 6 The Desktop [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-launch-default-editor-with-java-6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert file path with space to a URL</title>
		<link>http://helpdesk.objects.com.au/java/how-to-convert-file-path-with-space-to-a-url?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-file-path-with-space-to-a-url</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-convert-file-path-with-space-to-a-url#comments</comments>
		<pubDate>Mon, 03 Aug 2009 00:43:19 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[spaces]]></category>
		<category><![CDATA[URI]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1110</guid>
		<description><![CDATA[Many developers use the toURL() method of the File class to convert a File to a URL. This method however does not handle correctly escaping characters that are illegal in URL&#8217;s (such as spaces) and has been deprecated. To convert a File to a URL you should instead first use the toURI() method to convert [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-convert-file-path-with-space-to-a-url/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a tar archive using Java</title>
		<link>http://helpdesk.objects.com.au/java/how-to-create-a-tar-archive-using-java?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-create-a-tar-archive-using-java</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-create-a-tar-archive-using-java#comments</comments>
		<pubDate>Mon, 13 Jul 2009 05:02:50 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[TarArchive]]></category>
		<category><![CDATA[trustice]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1075</guid>
		<description><![CDATA[Java doesn&#8217;t provide standard support for using tar archives so a 3rd party implementation is required. One such implementation is provided by ICE Engineering and can be found here. Here is a simple example of its usage to tar the files in a directory. File tarFile = new File(&#34;my.tar&#34;); FileOutputStream out = new FileOutputStream(tarFile); TarArchive [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-create-a-tar-archive-using-java/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to get the path of a file in a web application?</title>
		<link>http://helpdesk.objects.com.au/java/how-to-get-the-path-of-a-file-in-a-web-application?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-the-path-of-a-file-in-a-web-application</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-get-the-path-of-a-file-in-a-web-application#comments</comments>
		<pubDate>Wed, 15 Apr 2009 04:13:02 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[application server]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[getRealPath]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[ServletContext]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=891</guid>
		<description><![CDATA[Sometimes you need the path of a file in your web application, for example if you need to open a file for reading. You could hard code where your web application is deployed but that will break if you ever move where your application is deployed. Luckily the ServletContext class provides a getRealPath() method to [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-get-the-path-of-a-file-in-a-web-application/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

