com.flexive.shared
Class FxSharedUtils.AsyncStreamBuffer

java.lang.Object
  extended by java.lang.Thread
      extended by com.flexive.shared.FxSharedUtils.AsyncStreamBuffer
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
FxSharedUtils

static final class FxSharedUtils.AsyncStreamBuffer
extends java.lang.Thread

Helper thread to asynchronously read and buffer an InputStream


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.io.InputStream in
           
protected  java.lang.StringBuffer sb
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FxSharedUtils.AsyncStreamBuffer(java.io.InputStream in)
          Constructor
 
Method Summary
 java.lang.String getResult()
          Getter for the buffered result
 void run()
          
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

in

protected java.io.InputStream in

sb

protected java.lang.StringBuffer sb
Constructor Detail

FxSharedUtils.AsyncStreamBuffer

FxSharedUtils.AsyncStreamBuffer(java.io.InputStream in)
Constructor

Parameters:
in - the InputStream to buffer
Method Detail

getResult

public java.lang.String getResult()
Getter for the buffered result

Returns:
buffered result

run

public void run()

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread