Top "Inputstream" questions

An abstract mechanism for reading a data stream in Java

How to store large blobs in an android content provider?

I have some large files (images and video) which I need to store in a content provider. The android documentation …

android inputstream android-contentprovider android-contentresolver
In C++, can you manually set the failbit of a stream? How?

I am overloading the input stream operator for use with a Time class and would like to manually set the …

c++ validation inputstream
Getting specific file from ZipInputStream

I can go through ZipInputStream, but before starting the iteration I want to get a specific file that I need …

java file-io groovy inputstream zipinputstream
What's the difference between InputStream and ByteArrayInputStream?

The following code is extracted from the java web start chapter of the core java volume 1. ByteArrayOutputStream out = new ByteArrayOutputStream(); …

java inputstream jnlp bytearrayinputstream
InputStream or Reader wrapper for progress reporting

So, I'm feeding file data to an API that takes a Reader, and I'd like a way to report progress. …

java inputstream java-io
What is the difference between Java 6 and 7 that would cause a performance issue?

My general experience with Java 7 tells me that it is faster than Java 6. However, I've run into enough information that …

java performance inputstream
How to clear/reset/open an input stream so it can be used in 2 different methods in Java?

Here's the code: package testpack; import java.io.*; public class InputStreamReadDemo { private void readByte() throws IOException { System.out.print("Enter …

java inputstream iostream bufferedreader system.in
Why does InputStream#read() return an int and not a byte?

Why does InputStream#read() return an int and not a byte?

java inputstream
How should an InputStream and an OutputStream be closed?

I'm using the following code to close an InputStream and an OutputStream from a connection to a server: try { if (…

android inputstream outputstream
Does FileInputStream.skip() do a seek?

I want to copy the last 10MB of a possibly large file into another file. Ideally I would use FileInputStream, …

java inputstream seek random-access