<?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>Mon, 06 Sep 2010 08:12:20 +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>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&amp;utm_medium=rss&amp;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&amp;utm_medium=rss&amp;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>0</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&amp;utm_medium=rss&amp;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); Subscribe to the comments for this post? Email this to a friend? Share this on [...]]]></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&amp;utm_medium=rss&amp;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); Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-open-file-using-default-application/feed</wfw:commentRss>
		<slash:comments>0</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&amp;utm_medium=rss&amp;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); Subscribe to the comments for this post? Email this to a friend? Share [...]]]></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&amp;utm_medium=rss&amp;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 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&amp;utm_medium=rss&amp;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>
		<item>
		<title>How to create a zip file containing an array of files</title>
		<link>http://helpdesk.objects.com.au/java/how-to-create-a-zip-file-containing-an-array-of-files?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-create-a-zip-file-containing-an-array-of-files</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-create-a-zip-file-containing-an-array-of-files#comments</comments>
		<pubDate>Tue, 14 Apr 2009 02:55:17 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[zip]]></category>
		<category><![CDATA[ZipOutputStream]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=913</guid>
		<description><![CDATA[// Create the ZIP file ZipOutputStream out = new ZipOutputStream(new FileOutputStream(&#34;my.zip&#34;)); // loop through the files to add to zip for (int i=0; i&#60;filenames.length; i++) { // open file FileInputStream in = new FileInputStream(filenames[i]); // Add new entry to zip out.putNextEntry(new ZipEntry(filenames[i])); // copy file to zip // see http://helpdesk.objects.com.au/java/how-do-i-copy-one-stream-to-another-using-java int len; while ((len = [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-create-a-zip-file-containing-an-array-of-files/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WARNING: The protocol used by this request is not declared in the list of client connectors. (FILE)</title>
		<link>http://helpdesk.objects.com.au/java/warning-the-protocol-used-by-this-request-is-not-declared-in-the-list-of-client-connectors-file?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=warning-the-protocol-used-by-this-request-is-not-declared-in-the-list-of-client-connectors-file</link>
		<comments>http://helpdesk.objects.com.au/java/warning-the-protocol-used-by-this-request-is-not-declared-in-the-list-of-client-connectors-file#comments</comments>
		<pubDate>Wed, 10 Dec 2008 09:50:36 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[Restlet]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=647</guid>
		<description><![CDATA[This error occurs because the File Protocol has not been added to your Restlet Component. How to add a Protocol to your Restlet application using Spring is explained here. Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us Add this to Google Bookmarks Share this on LinkedIn Clip [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/warning-the-protocol-used-by-this-request-is-not-declared-in-the-list-of-client-connectors-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I create a DOM Document from an XML file?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-create-a-dom-document-from-an-xml-file?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-do-i-create-a-dom-document-from-an-xml-file</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-create-a-dom-document-from-an-xml-file#comments</comments>
		<pubDate>Mon, 10 Nov 2008 22:56:23 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[Document]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[load]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=565</guid>
		<description><![CDATA[DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(file); // or if you need to specify an encoding explitily // Document document = builder.parse( // new InputStreamReader(new FileInputStream(file), encoding)); Subscribe to the comments for this post? Email this to a friend? Share this on del.icio.us Add this to Google Bookmarks Share this [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-create-a-dom-document-from-an-xml-file/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
