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 theInputStream
of a an embedded file to theOutputStream
of 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 correspondingInputStream
and thePipedOutputStream
to transfer the embedded file.
-
Method Summary
Modifier and Type Method Description void
run()
-
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 correspondingInputStream
and thePipedOutputStream
to transfer the embedded file.- Parameters:
fileName
- the name of the embedded fileinputStream
- theInputStream
of the embedded filepipedOut
- thePipedOutputStream
to send theEmbedded
file
-
-