Package com.microstrategy.webapi
Interface IContentConsumer
-
- All Known Implementing Classes:
AbstractExportTransform.IServerPlaintextExportStreamingContext
,EncodeSpecialStreamingContext
,StreamingContext
,TranscodingStreamingContext
public interface 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.- Since:
- MicroStrategy Web 9.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
consume(int contentLength, java.io.InputStream src)
Deprecated.void
consume(java.lang.String decode, int contentLength, java.io.InputStream src)
Request to a consumer to consume specified number of bytes from the input streamint
getContextLength()
java.lang.Exception
getException()
Returns the exception that caused consumption interruption.
-
-
-
Method Detail
-
consume
void consume(int contentLength, java.io.InputStream src) throws java.lang.Exception
Deprecated.Request to a consumer to consume specified number of bytes from the input stream- Parameters:
contentLength
- number of bytes to consume.src
- source input stream- Throws:
java.lang.Exception
-
consume
void consume(java.lang.String decode, int contentLength, java.io.InputStream src) throws java.lang.Exception
Request to a consumer to consume specified number of bytes from the input stream- Parameters:
contentLength
- number of bytes to consume.src
- source input streamdecode
- decoder charset name- Throws:
java.lang.Exception
-
getException
java.lang.Exception getException()
Returns the exception that caused consumption interruption.- Returns:
- the exception that caused consumption interruption.
-
getContextLength
int getContextLength()
-
-