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 void
consume(int contentLength, java.io.InputStream src)
Request to a consumer to consume specified number of bytes from the input streamvoid
consume(java.lang.String decodeCharsetName, int contentLength, java.io.InputStream src)
Request to a consumer to consume specified number of bytes from the input streamvoid
encode(java.nio.CharBuffer charBuff, java.io.OutputStream out)
void
transcode(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.Exception
Description copied from interface:IContentConsumer
Request to a consumer to consume specified number of bytes from the input stream- Specified by:
consume
in interfaceIContentConsumer
- Overrides:
consume
in 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.Exception
Description copied from interface:IContentConsumer
Request to a consumer to consume specified number of bytes from the input stream- Specified by:
consume
in interfaceIContentConsumer
- Overrides:
consume
in 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.IOException
java.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.CharacterCodingException
java.io.IOException
-
-