<?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: Some JSR 203 Examples</title>
	<atom:link href="http://tech.puredanger.com/index.php/2008/10/22/some-jsr-203-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/</link>
	<description>Alex Miller&#039;s technical blog</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:39:50 -0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: Alex</title>
		<link>http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/comment-page-1/#comment-102945</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 26 Oct 2008 03:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/#comment-102945</guid>
		<description>@Orion: I&#039;ve actually had discussions about that with various folks over the last couple years.  Because the underpinnings of the new file API are based on the concept of pluggable filesystems, there is actually the potential for an enormous amount of support.  

For instance, you could build a virtual file system that actually worked in-memory so that as your tests wrote to files, they were not actually touching disk, which of course means that it&#039;s easy to clean up, easy to write tests that don&#039;t depend on the runtime filesystem environment, and easy to avoid things like Windows file locking madness.  If I recall correctly, no such thing will ship with the jdk but someone has already built a proof of concept.</description>
		<content:encoded><![CDATA[<p>@Orion: I&#8217;ve actually had discussions about that with various folks over the last couple years.  Because the underpinnings of the new file API are based on the concept of pluggable filesystems, there is actually the potential for an enormous amount of support.  </p>
<p>For instance, you could build a virtual file system that actually worked in-memory so that as your tests wrote to files, they were not actually touching disk, which of course means that it&#8217;s easy to clean up, easy to write tests that don&#8217;t depend on the runtime filesystem environment, and easy to avoid things like Windows file locking madness.  If I recall correctly, no such thing will ship with the jdk but someone has already built a proof of concept.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Orion Letizi</title>
		<link>http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/comment-page-1/#comment-102836</link>
		<dc:creator>Orion Letizi</dc:creator>
		<pubDate>Sat, 25 Oct 2008 21:09:04 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/#comment-102836</guid>
		<description>Have there been discussions about how to mock this stuff up for tests?  One of the things that chaps me about the existing java filesystem api is that they are all concrete classes and very difficult to mock up for unit tests.</description>
		<content:encoded><![CDATA[<p>Have there been discussions about how to mock this stuff up for tests?  One of the things that chaps me about the existing java filesystem api is that they are all concrete classes and very difficult to mock up for unit tests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/comment-page-1/#comment-102103</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 24 Oct 2008 02:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/#comment-102103</guid>
		<description>@Walter: I&#039;d say opening a file is an awfully common use case.  There are really only a few basic ways to open access to a file - the classic Input/OutputStreams of course, and the new SeekableByteChannel which works from ByteBuffers.  

When you create a path (from a Filesystem or the helper Paths class), if the path is invalid it will throw an InvalidPathException (unchecked).  The rules defining what paths are invalid depends on the underlying file system (and possibly the file store as well).  

@Bruce: right on.  This is why I ask for feedback... :)  And also why I don&#039;t write code in a text editor anymore.  Fixed!</description>
		<content:encoded><![CDATA[<p>@Walter: I&#8217;d say opening a file is an awfully common use case.  There are really only a few basic ways to open access to a file &#8211; the classic Input/OutputStreams of course, and the new SeekableByteChannel which works from ByteBuffers.  </p>
<p>When you create a path (from a Filesystem or the helper Paths class), if the path is invalid it will throw an InvalidPathException (unchecked).  The rules defining what paths are invalid depends on the underlying file system (and possibly the file store as well).  </p>
<p>@Bruce: right on.  This is why I ask for feedback&#8230; :)  And also why I don&#8217;t write code in a text editor anymore.  Fixed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/comment-page-1/#comment-102058</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Fri, 24 Oct 2008 00:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/#comment-102058</guid>
		<description>new StandardWatchEventKind[  ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY]

or 

new StandardWatchEventKind[] {ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY}

??</description>
		<content:encoded><![CDATA[<p>new StandardWatchEventKind[  ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY]</p>
<p>or </p>
<p>new StandardWatchEventKind[] {ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY}</p>
<p>??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter</title>
		<link>http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/comment-page-1/#comment-101987</link>
		<dc:creator>Walter</dc:creator>
		<pubDate>Thu, 23 Oct 2008 20:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2008/10/22/some-jsr-203-examples/#comment-101987</guid>
		<description>Seems odd that Path would have methods to get, e.g., an OutputStream.  There are plenty of ways to open a file, why would they encumber Path with all of them or (alternately) declare some to be better than others?  Seems to suck in a lot of otherwise unnecessary type linkage.  Convenient if that&#039;s your use case, though.

Do illegally named Paths barf during creation or during access?</description>
		<content:encoded><![CDATA[<p>Seems odd that Path would have methods to get, e.g., an OutputStream.  There are plenty of ways to open a file, why would they encumber Path with all of them or (alternately) declare some to be better than others?  Seems to suck in a lot of otherwise unnecessary type linkage.  Convenient if that&#8217;s your use case, though.</p>
<p>Do illegally named Paths barf during creation or during access?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

