|
Java™ by example!
|
|
|
How do I convert an InputStream to a Reader?
An InputStream is byte oriented. A Reader is Character oriented. To hook up an InputStream to a Reader and have the conversion done automatically for you, use the class InputStreamReader. Main.java:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|