litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package org.litesoft.util;
import java.io.*;
public class CopyOutputThread extends Thread
{
private BufferedReader reader;
private PrintStream mOut;
public CopyOutputThread( InputStream pInputStream, PrintStream pOut )
{
reader = new BufferedReader( new InputStreamReader( pInputStream ) );
mOut = pOut;
start();
}
@Override
public void run()
{
try
{
for ( String line; null != (line = reader.readLine()); )
{
mOut.println( line );
}
}
catch ( IOException e )
{
e.printStackTrace( mOut );
}
finally
{
Utils.dispose( reader );
}
}
}
|
Revision |
Author |
Commited |
Message |
906
|
GeorgeS
|
Fri 07 Jun, 2013 22:50:38 +0000 |
Update to latest gwt-phonegap & MGWT. |