Top "Inputstream" questions

An abstract mechanism for reading a data stream in Java

Guava equivalent for IOUtils.toString(InputStream)

Apache Commons IO has a nice convenience method IOUtils.toString() to read an InputStream to a String. Since I am …

java io inputstream guava
ClassLoader getResourceAsStream returns null

My project directory structure (in Eclipse): MyProject/ src/ --> "source directory" on Eclipse's classpath/buildpath com.me.myapp Driver …

java eclipse classpath classloader inputstream
Write an InputStream to an HttpServletResponse

I have an InputStream that I want written to a HttpServletResponse. There's this approach, which takes too long due to …

java jakarta-ee servlets inputstream outputstream
Idiomatic way to convert an InputStream to a String in Scala

I have a handy function that I've used in Java for converting an InputStream to a String. Here is a …

string scala inputstream
What does InputStream.available() do in Java?

What does InputStream.available() do in Java? I read the documentation, but I still cannot make it out. The doc …

java blocking inputstream
Wrapping a ByteBuffer with an InputStream

I have a method that takes an InputStream and reads data from it. I would like to use this method …

java nio inputstream bytebuffer
How to read pdf stream in angularjs

I got the following PDF stream from a server: How can this stream be read in AngularJS? I tried to …

java angularjs pdf inputstream
Why is using BufferedInputStream to read a file byte by byte faster than using FileInputStream?

I was trying to read a file into an array by using FileInputStream, and an ~800KB file took about 3 seconds …

java file-io inputstream fileinputstream
Converting input stream into bitmap

I have problems converting a input stream from web into bitmap. Problem occurs only when input image type is .BMP (…

java android multithreading inputstream android-3.0-honeycomb