Top "Inputstream" questions

An abstract mechanism for reading a data stream in Java

Capture characters from standard input without waiting for enter to be pressed

I can never remember how I do this because it comes up so infrequently for me. But in C or …

c++ c inputstream
Determine the size of an InputStream

My current situation is: I have to read a file and put the contents into InputStream. Afterwards I need to …

java arrays size inputstream
Reading InputStream as UTF-8

I'm trying to read from a text/plain file over the internet, line-by-line. The code I have right now is: …

java utf-8 inputstream
Different ways of loading a file as an InputStream

What's the difference between: InputStream is = this.getClass().getClassLoader().getResourceAsStream(fileName) and InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName) and …

java inputstream
Convert InputStream to BufferedReader

I'm trying to read a text file line by line using InputStream from the assets directory in Android. I want …

java android inputstream readline bufferedreader
Difference between Console.Read() and Console.ReadLine()?

I'm new to this field and I'm very confused: what is the real difference between Console.Read() and Console.ReadLine()?

c# input console inputstream
Getting the inputstream from a classpath resource (XML file)

In Java web application, Suppose if I want to get the InputStream of an XML file, which is placed in …

java file-io inputstream
InputStream from a URL

How do I get an InputStream from a URL? for example, I want to take the file at the url …

java url inputstream
How to clone an InputStream?

I have a InputStream that I pass to a method to do some processing. I will use the same InputStream …

java clone inputstream
Is it possible to read from a InputStream with a timeout?

Specifically, the problem is to write a method like this: int maybeRead(InputStream in, long timeout) where the return value …

java timeout inputstream