Top "Inputstream" questions

An abstract mechanism for reading a data stream in Java

InputStream from relative path

I have a relative file path (for example "/res/example.xls") and I would like to get an InputStream Object …

java path io inputstream relative-path
Closing Java InputStreams

I have some questions about the usage of the close() method when using Java InputStreams. From what I see and …

java inputstream
Read integers separated with whitespace into int[] array

I read line with BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader.readLine(); Example input is 1 4 6 32 5 What is the …

java arrays int inputstream
How can I get a java.io.InputStream from a java.lang.String?

I have a String that I want to use as an InputStream. In Java 1.0, you could use java.io.StringBufferInputStream, …

java string inputstream
Reading a textfile using InputStream

How can I read a text file like in android app: "1.something written 2.in this file 3.is to be read …

java android inputstream
How to convert an InputStream to a DataHandler?

I'm working on a java web application in which files will be stored in a database. Originally we retrieved files …

java inputstream outputstream
Download binary file from OKHTTP

I am using OKHTTP client for networking in my android application. This example shows how to upload binary file. I …

android inputstream bufferedinputstream okhttp
Load a file from external storage to Inputstream

i have a video file in my external directory. how can i load it to inputstream variable. For the time …

android inputstream android-file
Exception Handling and Opening a File?

Is it possible to use exceptions with file opening as an alternative to using .is_open()? For example: ifstream input; …

c++ exception-handling inputstream file-handling
How to identify end of InputStream in java

I am trying to read bytes from server using Socket program, ie I am using InputStream to read the bytes. …

java sockets inputstream