com.gentics.api.lib.etc
Class ObjectTransformer.InputStreamReaderRunnable

java.lang.Object
  extended by com.gentics.api.lib.etc.ObjectTransformer.InputStreamReaderRunnable
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ObjectTransformer

public static class ObjectTransformer.InputStreamReaderRunnable
extends java.lang.Object
implements java.lang.Runnable

Helper class that extends Runnable to read data from an input stream in a separate thread


Constructor Summary
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
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectTransformer.InputStreamReaderRunnable

public ObjectTransformer.InputStreamReaderRunnable(java.io.InputStream stream)
Create an instance of the helper class that will read from the given stream using the default charset

Parameters:
stream - stream to read from

ObjectTransformer.InputStreamReaderRunnable

public 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

Parameters:
stream - stream to read from
charset - charset to use
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

getThrowable

public java.lang.Throwable getThrowable()
Get the throwable, if one was caught reading from the stream

Returns:
throwable or null if none caught

getString

public java.lang.String getString()
Get the read string or null if more data can be read from the stream

Returns:
the read string or null


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.