Can Apache Commons IO use memory mapping?

another question, by the way, are there more Files classes or more Apache Commons IO classes that generally use Java 7 in development nowadays?

Mar.07,2021

first of all, wherever you deal with a stream, you can use ByteArrayInputStream or ByteArrayOutputStream, that is, the contents of the stream are in memory. Second, as long as you are familiar with the Path classes, you don't want to go back to using File.


you can use the latest version of commons-io 2.6. br > itself depends on JDK 1.7.
means that the underlying layer is NIO, and jvm mmap will be called to handle

when appropriate.

commons-io itself is an easy-to-use package for Java API orthonormal design.
performance is really unbearable. You may need to call NIO api yourself or simply change the language

.
Menu