apache-commons-io
Why can't I read from /proc in Java using Commons IO FileUtils, but can do so using a plain FileInputStream?
I had a problem with reading /proc/%d/stat files using my Java method copyFiles() (source code below).[详细]
2023-03-28 15:45 分类:问答Problems deleting a file with Java (apache commons io)
I am calling a C++ Method via JNI which creates two files. A text log file and a pdf file in a given directory. I want to delete these files (if they exist) before executing the JNI method.[详细]
2023-03-05 03:54 分类:问答in java TailListener,how to avoid duplicate log messages
my code is given below . public static void main(String[] args) { // TODO code application logic here File pcounter_log = new File(\"c:\\development\\temp\\test.log\");[详细]
2023-03-04 18:44 分类:问答Socket stream hangs when using IOUtils.copy()
I want to send an InputStream containing XML from the client to a server. Said server manipulates the XML stream using Streaming API for XML (StAX) and sends it back to the client.[详细]
2023-01-27 15:39 分类:问答Apache FileUtils listFiles
Hey everyone I\'m trying to get a List of directories.I\'m using FileUtils listFiles(). I want to do something like this: listFiles(File,IOFileFilter,false).My real questions ishow I can implement th[详细]
2022-12-29 04:55 分类:问答Reading a specific line from a text file in Java
Is there any method to read a specific line from a text file ? In the API or Apache Commons. Something like :[详细]
2022-12-17 22:34 分类:问答