Class PipedReadEmbeddedFileThread
- java.lang.Object
-
- java.lang.Thread
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.EdalThread
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.PipedReadEmbeddedFileThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class PipedReadEmbeddedFileThread extends EdalThread
Thread to read theInputStreamof a an embedded file to theOutputStreamof the HTTP response with the help of a piped stream.
-
-
Constructor Summary
Constructors Constructor Description PipedReadEmbeddedFileThread(java.lang.String fileName, java.io.InputStream inputStream, java.io.PipedOutputStream pipedOut)Create a new Thread and set the correspondingInputStreamand thePipedOutputStreamto transfer the embedded file.
-
Method Summary
Modifier and Type Method Description voidrun()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
PipedReadEmbeddedFileThread
public PipedReadEmbeddedFileThread(java.lang.String fileName, java.io.InputStream inputStream, java.io.PipedOutputStream pipedOut)Create a new Thread and set the correspondingInputStreamand thePipedOutputStreamto transfer the embedded file.- Parameters:
fileName- the name of the embedded fileinputStream- theInputStreamof the embedded filepipedOut- thePipedOutputStreamto send theEmbeddedfile
-
-