public class StreamGobbler
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description | 
|---|
| StreamGobbler(java.lang.String name,
             java.io.InputStream in)Constructs a new StreamGobbler. | 
| StreamGobbler(java.lang.String name,
             java.io.InputStream in,
             java.io.OutputStream out)Constructs a new StreamGobbler which dump the input stream in an OuputStream. | 
| StreamGobbler(java.lang.String name,
             java.io.InputStream in,
             java.lang.StringBuilder sb)Constructs a new StreamGobbler which dump the input stream to a StringBuilder | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getString() | 
| void | run() | 
| void | start() | 
public StreamGobbler(java.lang.String name,
                     java.io.InputStream in)
name - the name (for the thread)in - the input streampublic StreamGobbler(java.lang.String name,
                     java.io.InputStream in,
                     java.lang.StringBuilder sb)
name - the name (for the thread)in - the input streamsb - the StringBuilderpublic StreamGobbler(java.lang.String name,
                     java.io.InputStream in,
                     java.io.OutputStream out)
name - the name (for the thread)in - the input streamout - the OutputStreamCopyright © 2001-2019 Jalios SA. All Rights Reserved.