Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package teln;
- import java.io.IOException;
- import java.io.InputStream;
- public class StreamReader {
- private StreamReader() {
- }
- StreamReader(InputStream inputStream) throws IOException {
- char ch = (char) inputStream.read();
- while (true) {
- System.out.print(ch);
- ch = (char) inputStream.read();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment