Created
March 9, 2014 13:31
-
-
Save thermosym/9447765 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrintStream extends Thread | |
{ | |
java.io.InputStream __is = null; | |
public PrintStream(java.io.InputStream is) | |
{ | |
__is = is; | |
} | |
public void run() | |
{ | |
try | |
{ | |
while(this != null) | |
{ | |
int _ch = __is.read(); | |
if(_ch != -1) | |
System.out.print((char)_ch); | |
else break; | |
} | |
} | |
catch (Exception e) | |
{ | |
e.printStackTrace(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment