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.

Netty performance

Is there any real difference to the performance when you use Netty and if you don't use it in an …

java performance nio netty
Alternative to File.deleteOnExit() in Java NIO?

Java IO has File.deleteOnExit(), which is a method that deletes the file it is called on during normal termination …

java nio
Java High-load NIO TCP server

As a part of my research I'm writing an high-load TCP/IP echo server in Java. I want to serve …

java tcp nio high-load
java.nio.file.Files.delete(Path path) - occasional failure to recursively delete directory using SimpleFileVisitor

Trying to troubleshoot an occasional java.nio.file.DirectoryNotEmptyException in a recursive delete method taken from Delete directories recursively in …

file-io java-7 nio java-io
Java ByteBuffer performance issue

While processing multiple gigabyte files I noticed something odd: it seems that reading from a file using a filechannel into …

java performance nio bytebuffer
Binary search in a sorted (memory-mapped ?) file in Java

I am struggling to port a Perl program to Java, and learning Java as I go. A central component of …

java nio large-files binary-search memory-mapping
difference between bytebuffer.flip() and bytebuffer.rewind()

I am aware that flip() set the current buffer position to 0 and set the limit to the previous buffer position …

java io nio
Java, IO - fastest way to remove file

My problem is that I have an app which is writing a lot of relatively (100-500kb) small CSV files (…

java file io nio
Java.nio Channels and TLS

How do I secure a Java SocketChannel, ServerSocketChannel or, perhaps even, a DatagramChannel with TLS? I know that there are …

java nio ssl socketchannel
java.nio.file.Path for URLs?

Java7 ships with a default Path implementation for local files. Is there a Path implementation for URLs? For example, I …

java path nio