|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.xmlBlaster.client.StreamingCallback.Writer
class StreamingCallback.Writer
Writer needed since the out stream must be written from a thread which does not die before the thread which reads the in counterpart. For some "strange" reason the implementation of the Pipe streams makes a check if the thread which has made the last write operation on the out stream still is valid. If not, a Dead End IO Exception is thrown when reading.
| Nested Class Summary | |
|---|---|
(package private) class |
StreamingCallback.Writer.WriterData
|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private java.util.concurrent.LinkedBlockingQueue<StreamingCallback.Writer.WriterData> |
channel
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
StreamingCallback.Writer()
|
|
StreamingCallback.Writer(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
close(java.io.OutputStream outStream)
|
void |
run()
|
void |
write(java.io.OutputStream outStream,
byte[] buf)
|
| 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 |
|---|
private java.util.concurrent.LinkedBlockingQueue<StreamingCallback.Writer.WriterData> channel
| Constructor Detail |
|---|
public StreamingCallback.Writer(java.lang.String name)
public StreamingCallback.Writer()
| Method Detail |
|---|
public void write(java.io.OutputStream outStream,
byte[] buf)
throws java.lang.InterruptedException,
XmlBlasterException
java.lang.InterruptedException
XmlBlasterException
public void close(java.io.OutputStream outStream)
throws java.lang.InterruptedException,
XmlBlasterException
java.lang.InterruptedException
XmlBlasterExceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadThread.run()
|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||