Search Discussions

150 discussions - 654 posts

  • Hello, I'm currently watching a directory with all it's subdirectories for changes. Furthermore I'm registering newly inserted directories at the WatchService. I furthermore like to create the ...
    Jan 24, 2012 at 3:51 pm
    Jan 24, 2012 at 7:12 pm
  • Hello, I'm using a WatchService to monitor changes in a directory recursively. Now I want to add a simple rename or move-detection. Therefore I probably can use ...
    Jan 9, 2012 at 11:56 am
    Jan 11, 2012 at 4:12 am
  • Hi all, from the Docs of SocketChannel: "They support concurrent reading and writing, though at most one thread may be reading and at most one thread may be writing at any given time." I have a ...
    Dec 29, 2011 at 3:01 am
    Jan 17, 2012 at 12:37 am
  • Is it new behavior of ObjectInput/OutputStream to store serialization exceptions and throw them on deserialization? It's pretty handy. I found that when trying to deserialize a Path instance ...
    Paulo LeviPaulo Levi
    Dec 27, 2011 at 9:51 pm
    Dec 28, 2011 at 1:22 pm
  • It seems to me that those are popular inputs for file objects. Also i think JFileChooser may benefit from such a retrofit. For instance i know that it suffers from a exception in serialization of ...
    Paulo LeviPaulo Levi
    Dec 27, 2011 at 3:50 pm
    Dec 27, 2011 at 3:56 pm
  • I don't know if this was taken into account in the design (excuses if it has, and i just missed it) , but all filesystems have non portable filename restrictions, eg: not 256 length, forbidden ...
    Paulo LeviPaulo Levi
    Dec 27, 2011 at 1:44 pm
    Dec 27, 2011 at 1:44 pm
  • StandardOpenOption <http://openjdk.java.net/projects/nio/javadoc/java/nio/file/StandardOpenOption.html CREATE StandardOpenOption ...
    Paulo LeviPaulo Levi
    Dec 27, 2011 at 12:38 pm
    Dec 30, 2011 at 7:30 am
  • Hi, I just made the fairly rookie error of assuming that AsynchronousFileChannel would have an analagous method to FileChannel.transferTo, but unfortunately this appears not to be the case. Is this ...
    Benedict Elliott SmithBenedict Elliott Smith
    Dec 2, 2011 at 11:45 am
    Dec 2, 2011 at 11:45 am
  • Hello. Bug 6993126, http://bugs.sun.com/bugdatabase/view_bug.do?bug_idi93126, indicated that again in jdk8. ADC stayed in JDK7, but are the improvements in the jdk8 plan? What was was/is deficient ...
    David DabbsDavid Dabbs
    Nov 19, 2011 at 12:21 pm
    Nov 19, 2011 at 12:21 pm
  • Need to cast a wide net here to try and catch past and present NIO developers/users. I'm looking into refactoring all the generated buffer classes to reduce the number of classes created. Part of ...
    David HolmesDavid Holmes
    Nov 1, 2011 at 5:07 pm
    Nov 2, 2011 at 12:22 am
  • I'm looking on how to get similar code out of new FS / NIO API. Does ZipFS support have something? e.g. in the worst case an exact cast to get some impl details out Thanks for any info ...
    Ales JustinAles Justin
    Oct 10, 2011 at 5:43 am
    Oct 10, 2011 at 5:43 am
  • I have large binary files (up to 1GB) of 56 byte records of int, float and char primitives. I want to read these files and process the records. The JVM can have several GB of available heap if ...
    Andrew MAndrew M
    Sep 23, 2011 at 7:25 pm
    Sep 27, 2011 at 11:33 am
  • FileSystemProvider.newInputStream disallows any OpenOption other than StandardOpenOption.Read. Thus it can't be used to specify a LinkOption or an implementation-defined extension. Was this really ...
    Salter, Thomas ASalter, Thomas A
    Sep 6, 2011 at 12:43 pm
    Sep 6, 2011 at 1:02 pm
  • Hi, I am trying to implement a simple in-memory FileSystem for some testing I am doing. And I've made a small mixed list of questions and comments. 1) perhaps the equals and compare method should ...
    Kasper NielsenKasper Nielsen
    Aug 24, 2011 at 6:29 am
    Aug 24, 2011 at 2:32 pm
  • Hi guys Since I came at the point where I want to support Windows Named Pipes and Unix Domain Sockets in some project I implemented them by using JNA. That seems to work nice but it's sad to see that ...
    Aug 21, 2011 at 11:46 pm
    Aug 26, 2011 at 2:39 am
  • I am calling Files.createDirectory() to create a new directory with a set of Posix file permissions, on Linux. Here is some example code: String perms = "rwxrwxrwx"; String dirName = "some-dir" ...
    Tim FoxTim Fox
    Aug 5, 2011 at 5:23 am
    Aug 5, 2011 at 5:57 am
  • Hello, It's not clear to me how to tell if I have read to end of file using AsynchronousFileChannel.read(). The javadoc mentions that if -1 is returned as number of bytes read than that means the ...
    Tim FoxTim Fox
    Aug 3, 2011 at 10:42 pm
    Aug 4, 2011 at 6:57 am
  • Hello all, I'm looking at the javadoc for the new Files class in Java 7: http://download.oracle.com/javase/7/docs/api/ For the operations that make changes on disk, it's not clear to me if the ...
    Tim FoxTim Fox
    Aug 2, 2011 at 1:23 am
    Aug 2, 2011 at 2:30 am
  • Hello All, In anticipation of the iminent Java 7 release, I took a look at the source for asynchronous file IO, and it seems to be "faking" async IO by hiding old synchronous IO behind a thread ...
    Tim FoxTim Fox
    Jul 27, 2011 at 2:22 am
    Aug 1, 2011 at 8:24 am
  • How are users expected to take advantage of the "unix" file attributes? They can retrieved dynamically through Files.readAttributes. FileSystem. supportedFileAttributeViews tells you they exist. Yet ...
    Salter, Thomas ASalter, Thomas A
    Jul 19, 2011 at 1:19 pm
    Jul 19, 2011 at 8:39 pm
  • Hi, It's not clear how to make use of AsynchronousChannelGroup. The user invokes open(AsynchronousChannelGroup) on my custom AsynchronousByteChannel. What next? How am I supposed to gain access to ...
    Jul 12, 2011 at 11:48 am
    Jul 24, 2011 at 5:18 pm
  • Hi, i am not quite sure what the specification says. But the sync on handler and the notify on handler inside foo.read() ensures that it is invoked in the right and expected order. Because the notify ...
    Sebastian SickelmannSebastian Sickelmann
    Jul 12, 2011 at 10:42 am
    Jul 12, 2011 at 11:50 am
  • Hi, The specification for AsynchronousByteChannel.read() talks about the operation taking place asynchronously, but what happens when the end of stream has been reached? Is an implementation allowed ...
    Jul 12, 2011 at 8:00 am
    Jul 13, 2011 at 2:05 am
  • http://truezip.schlichtherle.de/2011/07/08/truezip-7_2/ An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20110708/bef82f90/attachment.html
    Christian SchlichtherleChristian Schlichtherle
    Jul 8, 2011 at 10:53 am
    Jul 8, 2011 at 10:53 am
  • Hello there, Our team develops Java libraries to work with Subversion and Mercurial version control systems. These libraries heavily depend on file system access. Currently we have to execute ...
    Semen VadishevSemen Vadishev
    Jun 26, 2011 at 12:19 pm
    Jun 26, 2011 at 1:07 pm
  • http://truezip.schlichtherle.de/2011/06/23/truezip-7-2-rc-1/ In contrast to the buggy Beta 3 preview, this release candidate has been thoroughly tested with the integration tests ported from the ...
    Christian SchlichtherleChristian Schlichtherle
    Jun 23, 2011 at 9:34 am
    Jun 23, 2011 at 9:34 am
  • FileStore.getUsableSpace says the following (with similar wording in FileStore.getUnallocatedSpace): The returned number of available bytes is a hint, but not a guarantee, that it is possible to use ...
    Salter, Thomas ASalter, Thomas A
    Jun 21, 2011 at 7:00 am
    Jun 21, 2011 at 7:16 am
  • Hi everyone, there was an issue with the Maven archetype's POM which has been fixed. The updated Maven archetype coordinates are: Group Id: de.schlichtherle.truezip Artifact Id ...
    Christian SchlichtherleChristian Schlichtherle
    Jun 10, 2011 at 2:16 am
    Jun 10, 2011 at 2:16 am
  • Hi everyone, this is a quick note to let you know that I have released a first beta version of TrueZIP 7.2 to Maven Central. Hot topic: TrueZIP now ships with the new module TrueZIP Path which ...
    Christian SchlichtherleChristian Schlichtherle
    Jun 9, 2011 at 8:06 pm
    Jun 11, 2011 at 12:11 pm
  • Hi, I wonder if there is a TCK for my FileSystemProvider implementation? Regards, Christian An HTML attachment was scrubbed... URL ...
    Christian SchlichtherleChristian Schlichtherle
    Jun 9, 2011 at 10:58 am
    Jun 9, 2011 at 11:21 am
  • Is it me doing something wrong or is it not possible to compile code against JDK 1.7.0 with source and target set to 1.5? I would like to be able to figure the environment at runtime. So far I have ...
    Christian SchlichtherleChristian Schlichtherle
    Jun 7, 2011 at 9:44 am
    Jun 7, 2011 at 9:44 am
  • I am on leave till 06/16. For all technical matters, please contact my manager Dhiraj Mutreja (dhiraj.mutreja at oracle.com)
    Ballav BihaniBallav Bihani
    Jun 6, 2011 at 12:00 pm
    Jun 6, 2011 at 12:00 pm
  • Hi Alan, we recently discussed that I have a need to determine the NIO.2 FileSystemProvider instances at run time. Because this is not possible, you suggested I should introduce one VFS scheme for my ...
    Christian SchlichtherleChristian Schlichtherle
    Jun 6, 2011 at 3:10 am
    Jun 7, 2011 at 4:19 am
  • Hi Alan, I just came across an issue with the URIs created by Paths.get(String first, String. more). On Windows if the current directory is C:/foo, then assert ...
    Christian SchlichtherleChristian Schlichtherle
    Jun 6, 2011 at 2:36 am
    Jun 6, 2011 at 10:23 am
  • Hi, I can find no equivalent to File.setReadOnly(boolean) using the NIO.2 API. I suppose I should be calling Files.setAttribute(*), but what is the attribute parameter in a cross-platform way? ...
    Christian SchlichtherleChristian Schlichtherle
    May 29, 2011 at 11:37 pm
    May 30, 2011 at 12:59 am
  • Hi Alan, I have a troublesome issue with implementing a FileSystemProvider for TrueZIP: The problem is that FileSystemProvider.getScheme() can only return a single scheme. However, TrueZIP supports ...
    Christian SchlichtherleChristian Schlichtherle
    May 28, 2011 at 6:22 am
    May 29, 2011 at 1:09 am
  • The Javadoc says: This method may not be used to compare paths that are associated with different file system providers. Whereas Path.equals(Object) says: If the given object is not a Path, or is a ...
    Christian SchlichtherleChristian Schlichtherle
    May 26, 2011 at 9:51 am
    May 26, 2011 at 10:14 am
  • File file = new File(""); assert file.getName().isEmpty(); assert null == file.toPath().getFileName(); That's a very subtle difference. I'ld prefer to return in Path.getFileName(). An HTML attachment ...
    Christian SchlichtherleChristian Schlichtherle
    May 26, 2011 at 9:31 am
    May 26, 2011 at 11:31 am
  • Hi Alan, the Javadoc for Path.toUri() says that the returned URI is hierarchical. However, this is not necessarily true. I used the following demo to verify this with TrueZIP 7.1 and the ...
    Christian SchlichtherleChristian Schlichtherle
    May 26, 2011 at 8:52 am
    May 26, 2011 at 12:32 pm
  • Are you capable of having sex non-stop?. http://www.clubmedian.hu/friends_links.php?tjxpage i6
    Rob ButlerRob Butler
    May 26, 2011 at 1:47 am
    May 26, 2011 at 1:47 am
  • Hi Alan, now that I've released TrueZIP 7.1 (http://truezip.java.net), I have finally some time to look into the FileSystemProvider implementation. I wonder if it's OK for a ...
    Christian SchlichtherleChristian Schlichtherle
    May 24, 2011 at 11:35 am
    May 24, 2011 at 1:47 pm
  • Hi Alan, is there a difference in the semantics of the terms JSR-203 and NIO.2 or NIO2 or are they just aliases for the same specification? Maybe JSR-203 refers to the spec while NIO.2 or NIO2 refers ...
    Christian SchlichtherleChristian Schlichtherle
    May 16, 2011 at 3:11 pm
    May 17, 2011 at 1:39 am
  • I see that a method to create a hard link is available in NIO.2. But where is the method to get the current link count? It was mentioned back in 2008 here ...
    Scott PalmerScott Palmer
    May 13, 2011 at 7:28 am
    May 13, 2011 at 4:16 pm
  • Hi all, wouldn't it be interesting to have standard system paths available from FileSystem class, e.g. for Windows: %APPDATA% %AllUsersProfile% %SystemDrive% I ask this, because there is a problem to ...
    Ulf ZibisUlf Zibis
    Jan 24, 2011 at 11:22 am
    Feb 26, 2011 at 11:34 am
  • I am often tempted to use the following pattern : Path path=Paths.get("dir1/a") path.getParent().resolve("b") It returns dir1/a A problem occurs when path=Paths.get("a") I await "b", but I obviously ...
    Emmanuel CastroEmmanuel Castro
    Dec 9, 2010 at 1:20 pm
    Dec 11, 2010 at 12:39 pm
  • Hi Alan, Following up on http://mail.openjdk.java.net/pipermail/nio-discuss/2010-July/000442.html you wrote: "With blocking and non-blocking I/O then you usually have to poll with a timeout before ...
    Oct 14, 2010 at 8:41 pm
    Oct 14, 2010 at 8:41 pm
  • Just a heads-up for those using the weekly builds. jdk7-b114 is due to be promoted later today or tomorrow. Among the changes in this build are fixes and clean-ups to the FileVisitor interface that ...
    Alan BatemanAlan Bateman
    Oct 14, 2010 at 2:05 am
    Oct 14, 2010 at 2:05 am
  • Hi Alan, I don't recall if we discussed this before, but I'd like to improve upon "a subsequent attempt to initiate a read operation causes an unspecified runtime exception to be thrown" found in the ...
    Oct 12, 2010 at 11:30 pm
    Oct 18, 2010 at 2:54 am
  • Hi, I am wondering what are differences between DirectoryStream and SecureDirectoryStream in Java 7. Does it read encrypted content or it prevent some operations? Thanks. An HTML attachment was ...
    Sarah khoSarah kho
    Aug 30, 2010 at 2:46 am
    Aug 30, 2010 at 3:42 am
  • [Off Topic] When I hit the answer button it appears that I answer to the person address directly instead of the mailing list. Every now and then I forget to edit the address et voi'la my answer goes ...
    Christian SchlichtherleChristian Schlichtherle
    Aug 27, 2010 at 5:48 am
    Aug 27, 2010 at 6:26 am
Group Navigation
period‹ prev | Latest | first ›
Group Overview
groupnio-discuss @

Top users

Alan Bateman: 162 posts Alan Bateman: 81 posts Cowwoc: 57 posts Christian Schlichtherle: 34 posts Ulf Zibis: 27 posts Avinash Lakshman: 25 posts Mark Thornton: 18 posts Paulo Levi: 17 posts Martin Buchholz: 17 posts Vince Bonfanti: 12 posts Elliotte Harold: 10 posts Michael Hall: 10 posts Tim Fox: 10 posts Rob Butler: 9 posts David M. Lloyd: 9 posts Leon Finker: 9 posts Salter, Thomas A: 8 posts Nord, James: 8 posts Alan Snyder: 6 posts Jason Rutherglen: 6 posts
show more