Top "Java-io" questions

The java.

DataInputStream.read() vs DataInputStream.readFully()

Im making a simple TCP/IP Socket app Whats the different between doing this: DataInputStream in = new DataInputStream(clientSocket.getInputStream()); …

java sockets java-io
Testing for empty InputStream in Java

how do you guys test for an empty InputStream? I know that InputStream is designed to work with remote resources, …

java inputstream java-io
Can apache FileUtils.writeLines() be made to append to a file if it exists

The commons FileUtils look pretty cool, and I can't believe that they cannot be made to append to a file. …

java append apache-commons java-io
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
Choosing between FileReader and InputStreamReader

I have two methods to read Text File In java one using FileReader and Other File InputStream FileReader fr=new …

java java-io
Android: How to store data on internal memory?

It's perfectly described here how to do it, the only problem: He doesnt know the function openFileOutput(); private void saveSettingsFile() { …

android file-io java-io fileoutputstream
Java I/O streams; what are the differences?

java.io has many different I/O streams, (FileInputStream, FileOutputStream, FileReader, FileWriter, BufferedStreams... etc.) and I am confused in determining …

java io stream java-io
How to create an InputStream from an array of strings

I have an array of strings ( actually it's an ArrayList ) and I would like to create an InputStream from it, …

java java-io
REST CXF and Spring cxf-extension-jaxrs-binding File not found exception?

i'm trynig to develop a REST web service using CXF 2.6.0 and spring 2.5.6 my CXF maven dependancy in the pom.xml …

spring rest cxf java-io
Return File From Resteasy Server

Hi, I wanted to return a file from a resteasy server. For this purpose, I have a link at the …

java rest file-io resteasy java-io