com.microstrategy.webapi.IContentConsumer |
![]() |
This interface represents a consumer of data from input stream. It is used to stream binary data from a data source to a consumer without buffering it in between. Classes implementing this interface must read specified number of bytes from the input stream. Interface does not specify what those classes are supposed to to with this data.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
consume(String decode, int contentLength, InputStream src)
Request to a consumer to consume specified number of bytes from the input stream
| ||||||||||
abstract void |
consume(int contentLength, InputStream src)
This method is deprecated.
No replacement.
| ||||||||||
abstract int | getContextLength() | ||||||||||
abstract Exception |
getException()
Returns the exception that caused consumption interruption.
|
Request to a consumer to consume specified number of bytes from the input stream
decode | decoder charset name |
---|---|
contentLength | number of bytes to consume. |
src | source input stream |
Exception |
---|
This method is deprecated.
No replacement.
Request to a consumer to consume specified number of bytes from the input stream
contentLength | number of bytes to consume. |
---|---|
src | source input stream |
Exception | |
Exception |
Returns the exception that caused consumption interruption.