Top "Nio" questions

NIO is Java 'New I/O' introduced in 1.4, providing non-blocking and multiplexed network I/O; 'direct' (native) buffers; file locks and mapped files; and character set codecs.

Java Non-Blocking and Asynchronous IO with NIO & NIO.2 (JSR203) - Reactor/Proactor Implementations

So here I am reading one of my favorite software pattern books (Pattern-Oriented Software Architecture - Patterns for Concurrent and …

java design-patterns asynchronous nio asyncsocket
Java 7 nio list directory with wildcard

I'd like to find a file in a directory using wildcard. I have this in Java 6 but want to convert …

java nio
FileChannel.transferTo for large file in windows

Using Java NIO use can copy file faster. I found two kind of method mainly over internet to do this …

java nio file-copying
Non-Blocking File IO in Java

I want to write to a named pipe (already created) without blocking on the reader. My reader is another application …

java nio named-pipes nonblocking
java.io.File vs java.nio.Files which is the preferred in new code?

While writing answers around SO, a user tried pointing out that java.io.File should not be used in new …

java file io nio java-io
Read timeout for an NIO SocketChannel?

What is the best way to set a timeout to close a NIO SocketChannel if there is no data is …

java nio socketchannel
What is a "regular file" in Java?

The class BasicFileAttributes, for examining the properties of a file in the file system, has the method isRegularFile(). Unfortunately, the …

java nio
ByteBuffer getInt() question

We are using Java ByteBuffer for socket communication with a C++ server. We know Java is Big-endian and Socket communication …

java nio bytebuffer endianness
how to choose java nio vs io?

As we had known, If we want to use traditional IO to construct server, it must block somewhere, so we …

java nio
Java 7: get Path of resource (as object of type Path)

I'm using the features of Java 7 to read in a file. For that purpose I need an object of type …

nio java-7