public class EXIStreamDecoderImpl extends Object implements EXIStreamDecoder
Note: In case of multiple EXI documents with EXI Compression mode in one stream or subsequent data in the stream/file one needs to provide the input stream as PushbackInputStream with the size of at least DecodingOptions.PUSHBACK_BUFFER_SIZE. The reason for doing so is that the Java inflater sometimes reads beyond the EXI channel/block and PushbackInputStream allows us to push back this data so that it is not lost.
| Modifier and Type | Field and Description |
|---|---|
protected EXIBodyDecoder |
exiBody |
protected EXIHeaderDecoder |
exiHeader |
protected EXIFactory |
noOptionsFactory |
| Constructor and Description |
|---|
EXIStreamDecoderImpl(EXIFactory noOptionsFactory) |
| Modifier and Type | Method and Description |
|---|---|
EXIBodyDecoder |
decodeHeader(InputStream is) |
EXIBodyDecoder |
getBodyOnlyDecoder(InputStream is) |
protected final EXIHeaderDecoder exiHeader
protected EXIBodyDecoder exiBody
protected final EXIFactory noOptionsFactory
public EXIStreamDecoderImpl(EXIFactory noOptionsFactory) throws EXIException
EXIExceptionpublic EXIBodyDecoder getBodyOnlyDecoder(InputStream is) throws EXIException, IOException
getBodyOnlyDecoder in interface EXIStreamDecoderEXIExceptionIOExceptionpublic EXIBodyDecoder decodeHeader(InputStream is) throws EXIException, IOException
decodeHeader in interface EXIStreamDecoderEXIExceptionIOExceptionCopyright © 2018 Siemens AG. All rights reserved.