Mahesh Gupta
Mahesh Gupta

Reputation: 2748

InputStream initializing via another InputStream in Java

Is it possible to initialize an inputstream via another inputstream in java ?

Upvotes: 0

Views: 1104

Answers (2)

Mechkov
Mechkov

Reputation: 4324

You mean BufferedInputStream(new FileInputStream()) or something similar?

If so, then yes, it is possible. I would recommend check each InputStream's constructor API to see if they take an InputStream overloaded one. Regards!

Upvotes: 0

Miquel
Miquel

Reputation: 15675

Looks like this could help you: FilterInputStream

Upvotes: 1

Related Questions