Class TranscodingStreamingContext
- java.lang.Object
-
- com.microstrategy.webapi.StreamingContext
-
- com.microstrategy.web.app.transforms.TranscodingStreamingContext
-
- All Implemented Interfaces:
IContentConsumer
public class TranscodingStreamingContext extends StreamingContext
-
-
Field Summary
-
Fields inherited from class com.microstrategy.webapi.StreamingContext
_canRedirect, _containerServices, _contentLength, _ex, CONTENT_LENGTH_NAME, STREAMING_BUF_SIZE
-
-
Constructor Summary
Constructors Constructor Description TranscodingStreamingContext(ContainerServices cs, java.lang.String encode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(int contentLength, java.io.InputStream src)Request to a consumer to consume specified number of bytes from the input streamvoidconsume(java.lang.String decodeCharsetName, int contentLength, java.io.InputStream src)Request to a consumer to consume specified number of bytes from the input streamvoidencode(java.nio.CharBuffer charBuff, java.io.OutputStream out)voidtranscode(java.io.OutputStream out)-
Methods inherited from class com.microstrategy.webapi.StreamingContext
canRedirect, getContextLength, getException, setContentLength
-
-
-
-
Constructor Detail
-
TranscodingStreamingContext
public TranscodingStreamingContext(ContainerServices cs, java.lang.String encode)
-
-
Method Detail
-
consume
public void consume(int contentLength, java.io.InputStream src) throws java.lang.ExceptionDescription copied from interface:IContentConsumerRequest to a consumer to consume specified number of bytes from the input stream- Specified by:
consumein interfaceIContentConsumer- Overrides:
consumein classStreamingContext- Parameters:
contentLength- number of bytes to consume.src- source input stream- Throws:
java.lang.Exception
-
consume
public void consume(java.lang.String decodeCharsetName, int contentLength, java.io.InputStream src) throws java.lang.ExceptionDescription copied from interface:IContentConsumerRequest to a consumer to consume specified number of bytes from the input stream- Specified by:
consumein interfaceIContentConsumer- Overrides:
consumein classStreamingContext- Parameters:
decodeCharsetName- decoder charset namecontentLength- number of bytes to consume.src- source input stream- Throws:
java.lang.Exception
-
transcode
public void transcode(java.io.OutputStream out) throws java.io.IOException, java.nio.charset.CharacterCodingException- Throws:
java.io.IOExceptionjava.nio.charset.CharacterCodingException
-
encode
public void encode(java.nio.CharBuffer charBuff, java.io.OutputStream out) throws java.nio.charset.CharacterCodingException, java.io.IOException- Throws:
java.nio.charset.CharacterCodingExceptionjava.io.IOException
-
-