Top "Inputstream" questions

An abstract mechanism for reading a data stream in Java

How can I read a file to an InputStream then write it into an OutputStream in Scala?

I'm trying to use basic Java code in Scala to read from a file and write to an OutputStream, but …

java scala integration inputstream outputstream
Custom implementation of InputStream

To send data to a file on my FTP server, I need to create a custom InputStream implementation that reads …

java ftp inputstream java-io
Clone InputStream

I'm trying to read data from an InputStream, which could either be a FileInputStream or an ObjectInputStream. In order to …

java inputstream apache-commons apache-commons-io
How do you decide what byte[] size to use for InputStream.read()?

When reading from InputStreams, how do you decide what size to use for the byte[]? int nRead; byte[] data = new …

java io inputstream
Converting inputStream to FileInputStream?

I am in a problem - i need to read SecretKey from Android APK (e.g. key.keystore), for my …

android inputstream fileinputstream
Benefits of using flush() close() in Android streams?

I know the general idea but I'm just not sure if it has an effect since the Android api states …

android inputstream outputstream
Reading an InputStream into a Data object

In Swift 3.x, we usually handle binary data using Data; from it you can generate most other important types, and …

swift stream inputstream binary-data
How to skip invalid characters in stream in Java/Scala?

For example I have following code Source.fromFile(new File( path), "UTF-8").getLines() and it throws exception Exception in thread "…

java scala inputstream streamreader
Help reading JSON from HttpContext.InputStream

I have created a HttpModule to capture requests for auditing purposes. For Ajax requests to a web method I would …

asp.net json xmlhttprequest httpmodule inputstream
Java: FilterInputStream what are the advantages and use compared to other streams

I’ve been reading on InputStream, FileInputStream, ByteArrayInputStream and how their use seems quite clear (output streams too). What I’…

java stream inputstream outputstream