public interface

IContentConsumer

com.microstrategy.webapi.IContentConsumer
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract void consume(int contentLength, InputStream src)
This method is deprecated. No replacement.
abstract void consume(String decode, int contentLength, InputStream src)
Request to a consumer to consume specified number of bytes from the input stream
abstract int getContextLength()
abstract Exception getException()
Returns the exception that caused consumption interruption.

Public Methods

public abstract void consume (int contentLength, InputStream src)

This method is deprecated.
No replacement.

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
Exception
Exception

public abstract void consume (String decode, int contentLength, InputStream src)

Request to a consumer to consume specified number of bytes from the input stream

Parameters
decode decoder charset name
contentLength number of bytes to consume.
src source input stream
Throws
Exception

public abstract int getContextLength ()

public abstract Exception getException ()

Returns the exception that caused consumption interruption.

Returns
  • the exception that caused consumption interruption.