<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JDK7 NIO.2 FS API Primer</title>
	<atom:link href="http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/feed/" rel="self" type="application/rss+xml" />
	<link>http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/</link>
	<description>Maximum Zeal ~ Emphatic prose on indulged fascinations</description>
	<lastBuildDate>Fri, 27 Jan 2012 20:09:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Gerry Matte</title>
		<link>http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/comment-page-1/#comment-32964</link>
		<dc:creator>Gerry Matte</dc:creator>
		<pubDate>Wed, 28 Sep 2011 20:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://dhruba.name/?p=1288#comment-32964</guid>
		<description>Your SearchDirectory code contains two errors that prevent compilation:
Line 33 reads                 if (file.getName().equals(filePath)) {
but should instead be                 if (file.getFileName().equals(filePath)) {

and the line 42 statement         Files.walkFileTree(dirPath, visitor); 
must be surrounded with a try/catch block</description>
		<content:encoded><![CDATA[<p>Your SearchDirectory code contains two errors that prevent compilation:<br />
Line 33 reads                 if (file.getName().equals(filePath)) {<br />
but should instead be                 if (file.getFileName().equals(filePath)) {</p>
<p>and the line 42 statement         Files.walkFileTree(dirPath, visitor);<br />
must be surrounded with a try/catch block</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KamilWAT</title>
		<link>http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/comment-page-1/#comment-31915</link>
		<dc:creator>KamilWAT</dc:creator>
		<pubDate>Thu, 08 Sep 2011 16:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://dhruba.name/?p=1288#comment-31915</guid>
		<description>On Windows 7:

&lt;pre&gt;
at java.nio.file.Files.setPosixFilePermissions(Files.java:1974)
	at powerpack.controler.ManipulateFile.(ManipulateFile.java:35)
&lt;/pre&gt;

I would like create a simple program. Pragram will be compressing file. Buat when I use java.io.File i get Acces Denie
For example:

.....
path = &quot;C://New Folder&quot;;
File f = null

f = new File(path);

How Can I resolve my problem?</description>
		<content:encoded><![CDATA[<p>On Windows 7:</p>
<pre>
at java.nio.file.Files.setPosixFilePermissions(Files.java:1974)
	at powerpack.controler.ManipulateFile.(ManipulateFile.java:35)
</pre>
<p>I would like create a simple program. Pragram will be compressing file. Buat when I use java.io.File i get Acces Denie<br />
For example:</p>
<p>&#8230;..<br />
path = &#8220;C://New Folder&#8221;;<br />
File f = null</p>
<p>f = new File(path);</p>
<p>How Can I resolve my problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaideesh Natarajan</title>
		<link>http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/comment-page-1/#comment-18262</link>
		<dc:creator>Vaideesh Natarajan</dc:creator>
		<pubDate>Wed, 03 Nov 2010 17:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://dhruba.name/?p=1288#comment-18262</guid>
		<description>Hi Dhruba,

Excellent article, I have question for you. The organization that I work for is still using JDK6, is there anyway I can just extract the java.nio package and create a new jar of it, say nio2.jar  and run your examples ? I tried and got 
[Exception in thread &quot;main&quot; java.lang.SecurityException: Prohibited package name : java.nio.file]
I tried playing around by manually moving the classed to different packages and re-jarring, but didn&#039;t work as some of the classes have references to /java/nio/... embedded in them. Would greatly appreciate your input.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Dhruba,</p>
<p>Excellent article, I have question for you. The organization that I work for is still using JDK6, is there anyway I can just extract the java.nio package and create a new jar of it, say nio2.jar  and run your examples ? I tried and got<br />
[Exception in thread "main" java.lang.SecurityException: Prohibited package name : java.nio.file]<br />
I tried playing around by manually moving the classed to different packages and re-jarring, but didn&#8217;t work as some of the classes have references to /java/nio/&#8230; embedded in them. Would greatly appreciate your input.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confluence: André Costa</title>
		<link>http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/comment-page-1/#comment-8288</link>
		<dc:creator>Confluence: André Costa</dc:creator>
		<pubDate>Thu, 17 Sep 2009 14:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://dhruba.name/?p=1288#comment-8288</guid>
		<description>&lt;strong&gt;Mais artigos sobre as novas features do JDK7...&lt;/strong&gt;

O último artigo do The Planetarium...</description>
		<content:encoded><![CDATA[<p><strong>Mais artigos sobre as novas features do JDK7&#8230;</strong></p>
<p>O último artigo do The Planetarium&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/comment-page-1/#comment-8251</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 16 Sep 2009 00:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://dhruba.name/?p=1288#comment-8251</guid>
		<description>Looks better now.
I hoped the devs went the extra mile to also enable NIO2 to detect character and  block devices, socket and pipe files under Linux. Since I&#039;m working over a Java file browser (for Ubuntu), that would allow to better detect the file type.</description>
		<content:encoded><![CDATA[<p>Looks better now.<br />
I hoped the devs went the extra mile to also enable NIO2 to detect character and  block devices, socket and pipe files under Linux. Since I&#8217;m working over a Java file browser (for Ubuntu), that would allow to better detect the file type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhruba Bandopadhyay</title>
		<link>http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/comment-page-1/#comment-8138</link>
		<dc:creator>Dhruba Bandopadhyay</dc:creator>
		<pubDate>Mon, 14 Sep 2009 15:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://dhruba.name/?p=1288#comment-8138</guid>
		<description>Brian - thanks for your comments and suggestions.  Regarding the mistakes you found it was because I&#039;d forgotten to html entity encode all code snippets (a tedious task!).  This is now fixed.  And as per your suggestions the width of the blog is now wide enough to accommodate the code.  I&#039;d been pondering this for a while and have finally done it. :-)</description>
		<content:encoded><![CDATA[<p>Brian &#8211; thanks for your comments and suggestions.  Regarding the mistakes you found it was because I&#8217;d forgotten to html entity encode all code snippets (a tedious task!).  This is now fixed.  And as per your suggestions the width of the blog is now wide enough to accommodate the code.  I&#8217;d been pondering this for a while and have finally done it. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://dhruba.name/2009/09/06/jdk7-nio-2-fs-api-primer/comment-page-1/#comment-8128</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 14 Sep 2009 00:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://dhruba.name/?p=1288#comment-8128</guid>
		<description>Good examples, thanks,
In &quot;Manipulate files&quot; you have &quot;FileAttribute&gt; attr&quot; which should probably be without &quot;&gt;&quot;.
Would also be good the pages was little wider, unless it&#039;s designed for best view by mobile phone users.</description>
		<content:encoded><![CDATA[<p>Good examples, thanks,<br />
In &#8220;Manipulate files&#8221; you have &#8220;FileAttribute&gt; attr&#8221; which should probably be without &#8220;&gt;&#8221;.<br />
Would also be good the pages was little wider, unless it&#8217;s designed for best view by mobile phone users.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

