public static class ObjectTransformer.InputStreamReaderRunnable
extends java.lang.Object
implements java.lang.Runnable
Runnable
to read data from an input stream in a separate threadConstructor and Description |
---|
ObjectTransformer.InputStreamReaderRunnable(java.io.InputStream stream)
Create an instance of the helper class that will read from the given stream using the default charset
|
ObjectTransformer.InputStreamReaderRunnable(java.io.InputStream stream,
java.lang.String charset)
Create an instance of the helper class that will read from the given stream using the given charset
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getString()
Get the read string or null if more data can be read from the stream
|
java.lang.Throwable |
getThrowable()
Get the throwable, if one was caught reading from the stream
|
void |
run() |
public ObjectTransformer.InputStreamReaderRunnable(java.io.InputStream stream)
stream
- stream to read frompublic ObjectTransformer.InputStreamReaderRunnable(java.io.InputStream stream, java.lang.String charset)
stream
- stream to read fromcharset
- charset to usepublic void run()
run
in interface java.lang.Runnable
public java.lang.Throwable getThrowable()
public java.lang.String getString()
Copyright © 2018 Gentics Software. All Rights Reserved.