Top "Inputstream" questions

An abstract mechanism for reading a data stream in Java

How can I get MIME type of an InputStream of a file that is being uploaded?

Simple question: how can I get MIME type (or content type) of an InputStream, without saving file, for a file …

java servlets inputstream mime-types
What is the difference between Reader and InputStream?

What is the difference between Reader and InputStream? And when to use what? If I can use Reader for reading …

java file inputstream filereader fileinputstream
BufferedReader directly to byte[]

is there any possibility my following BufferedReader is able to put the input directly into a byte[]? public static Runnable …

java sockets bytearray inputstream bufferedreader
In Kotlin, how do I read the entire contents of an InputStream into a String?

I recently saw code for reading entire contents of an InputStream into a String in Kotlin, such as: // input is …

inputstream kotlin
Do I have to close FileInputStream?

I am working as a trainee in Test Automation. I am working with creating Junit code with Eclipse and run …

java file-io inputstream
Getting InputStream with RestTemplate

I am using URL class to read an InputStream from it. Is there any way I can use RestTemplate for …

java inputstream resttemplate
How to get the size of an InputStream?

I'm having an InputStream from a ProcessBuilder that acutally reads the stdout stream. Question: how can I know the size …

java inputstream content-length
SocketException: Permission Denied?

My LogCat reads: 08-19 09:29:01.964: WARN/System.err(311): java.net.SocketException: Permission denied 08-19 09:29:02.204: WARN/System.err(311): at org.apache.harmony.…

android url inputstream permission-denied socketexception
How to check if InputStream is Gzipped?

Is there any way to check if InputStream has been gzipped? Here's the code: public static InputStream decompressStream(InputStream input) { …

java http gzip inputstream httpurlconnection