Top "Java-io" questions

The java.

Custom implementation of InputStream

To send data to a file on my FTP server, I need to create a custom InputStream implementation that reads …

java ftp inputstream java-io
Best Way to Write Bytes in the Middle of a File in Java

What is the best way to write bytes in the middle of a file using Java?

java file java-io
Why does FileOutputStream throw FileNotFoundException?

The Android Developer reference (this page) says: Throws FileNotFoundException But at the very start, it says: Open a private file …

java android java-io android-file android-context
java : writing large files?

Greetings , I get huge number of records from database and write into a file.I was wondering what the best …

java java-io bufferedwriter
Socket server that waits for message from client to read

I have the following socket server in java, import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; …

java sockets wait java-io
Java: RandomAccessFile Mode "rws" vs "rwd"?

The RandomAccessFile constructor accepts a mode string specifying how a file should be open. I'm confused about the difference between "…

java file-io metadata java-io
Getting meaningful text from Java.io.Reader

I have a program that I'm writing where I am using another company's library to download some reports from their …

java java-io
how to create a file with world readable permission under subdirectory of files directory

I need to create files under myapp/files/subdir with global permission in my application. I do this because I …

android storage file-permissions java-io android-file
FileNotFoundException (no such file or directory)

I'm writing an android app and I need to read several files from several folders and add them to several …

java java-io
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