Top "Java-io" questions

The java.

Java: accessing a List of Strings as an InputStream

Is there any way InputStream wrapping a list of UTF-8 String? I'd like to do something like: InputStream in = new …

java java-io
BufferedReader vs Console vs Scanner

Hi I'm new to Java and I would like to know what is the best choice to read a user …

java java-io
How to pipe InputStream to ProcessBuilder

Please move down to the 2nd update. I didn't want to change the previous context of this question. I'm using …

java stdin java-io wkhtmltopdf processbuilder
How to find out which line separator BufferedReader#readLine() used to split the line?

I am reading a file via the BufferedReader String filename = ... br = new BufferedReader( new FileInputStream(filename)); while (true) { String s = …

java bufferedreader java-io linefeed
hadoop java.io.IOException: while running namenode -format

I ran namenode -format.This is my output. I tried changing the file permissions chmod 777 hadoop. I believe this line …

hadoop directory ioexception java-io
How can i zip files in Java and not include files paths

For example, I want to zip a file stored in /Users/me/Desktop/image.jpg I made this method: public …

java zip java-io
Sockets: BufferedReader readLine() blocks

I am using BufferedReader.readLine() method to read a response from a remote server (which is written in C and …

java sockets bufferedreader java-io
java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute on Windows

I am using Java 7 File API. I wrote a class that is working fine on Ubuntu creating directories perfectly, but …

java java-7 nio java-io unsupportedoperation
Using the FileWriter with a full path

I specified the full path of the file location when I created a FileWriter, but I did not see the …

java file java-io filewriter
Java Transformer outputs &lt; and &gt; instead of <>

I am editing an XML file in Java with a Transformer by adding more nodes. The old XML code is …

java xml java-io