@XMLBindable public class UESStreamHandler extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
UESStreamHandler.InputStreamFilter
Implementation of input stream filter used to bypass problem with
throwing exception when re-reading from input stream after its end
was reached.
|
protected class |
UESStreamHandler.StreamDataSource
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private javax.activation.DataHandler |
dataHandler
Instance of data handler.
|
private java.io.InputStream |
lastStream
Variable for checking contract of used UESStreamSource.
|
private long |
size
Size of data in bytes.
|
Modifier | Constructor and Description |
---|---|
protected |
UESStreamHandler()
Default no-arg constructor necessary for JAXB serialization.
|
|
UESStreamHandler(java.io.InputStream aIn,
Deprecated.
|
|
UESStreamHandler(java.io.InputStream aIn,
Deprecated.
|
|
UESStreamHandler(UESStreamSource aSource) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Returns stream content type.
|
protected javax.activation.DataHandler |
getDataSource()
Returns wrapped instance of data handler.
|
java.io.InputStream |
getInputStream()
Returns wrapped input stream.
|
long |
getSize()
Returns streamed data size (in bytes).
|
protected void |
initialize(java.io.InputStream aIn,
Deprecated.
|
void |
writeTo(java.io.OutputStream aOut)
Writes streamed data into given output stream.
|
UESStreamHandler.UESStreamHandler(UESStreamSource)
aIn
- Wrapped input streamaContentType
- Stream content typeUESStreamHandler.UESStreamHandler(UESStreamSource)
aIn
- Wrapped input streamaContentType
- Stream content typeaSize
- Streamed data size (in bytes)aIn
- Wrapped input streamaContentType
- Stream content typeaSize
- Streamed data size (in bytes)UESIORTException
- In case returning of input stream failsaOut
- OutputStream to which write dataUESIORTException
- In case writing to output stream fails