EXIficient

com.siemens.ct.exi.io.block
Class AbstractDecoderBlock

java.lang.Object
  extended by com.siemens.ct.exi.io.block.AbstractDecoderBlock
All Implemented Interfaces:
DecoderBlock
Direct Known Subclasses:
AbstractDecoderByteBlockChannelized, DecoderBitBlock, DecoderByteBlock

public abstract class AbstractDecoderBlock
extends java.lang.Object
implements DecoderBlock

TODO Description

Version:
0.3.20081105
Author:
Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com

Constructor Summary
AbstractDecoderBlock(java.io.InputStream is, TypeDecoder typeDecoder)
           
 
Method Summary
 TypeDecoder getTypeDecoder()
           
 boolean readBoolean()
           
 int readEventCode(int codeLength)
           
 java.lang.String readLocalName(java.lang.String uri)
           
 java.lang.String readPrefix(java.lang.String uri)
           
 java.lang.String readString()
           
 java.lang.String readTypedValidValue(Datatype datatype, java.lang.String namespaceURI, java.lang.String localName)
           
 java.lang.String readUri()
           
 java.lang.String readValueAsString(java.lang.String namespaceURI, java.lang.String localName)
           
 void skipToNextByteBoundary()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.siemens.ct.exi.io.block.DecoderBlock
reconstructChannels
 

Constructor Detail

AbstractDecoderBlock

public AbstractDecoderBlock(java.io.InputStream is,
                            TypeDecoder typeDecoder)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readEventCode

public int readEventCode(int codeLength)
                  throws java.io.IOException
Specified by:
readEventCode in interface DecoderBlock
Throws:
java.io.IOException

readString

public java.lang.String readString()
                            throws java.io.IOException
Specified by:
readString in interface DecoderBlock
Throws:
java.io.IOException

readUri

public java.lang.String readUri()
                         throws java.io.IOException
Specified by:
readUri in interface DecoderBlock
Throws:
java.io.IOException

readLocalName

public java.lang.String readLocalName(java.lang.String uri)
                               throws java.io.IOException
Specified by:
readLocalName in interface DecoderBlock
Throws:
java.io.IOException

readPrefix

public java.lang.String readPrefix(java.lang.String uri)
                            throws java.io.IOException
Specified by:
readPrefix in interface DecoderBlock
Throws:
java.io.IOException

readBoolean

public boolean readBoolean()
                    throws java.io.IOException
Specified by:
readBoolean in interface DecoderBlock
Throws:
java.io.IOException

readTypedValidValue

public java.lang.String readTypedValidValue(Datatype datatype,
                                            java.lang.String namespaceURI,
                                            java.lang.String localName)
                                     throws java.io.IOException
Specified by:
readTypedValidValue in interface DecoderBlock
Throws:
java.io.IOException

readValueAsString

public java.lang.String readValueAsString(java.lang.String namespaceURI,
                                          java.lang.String localName)
                                   throws java.io.IOException
Specified by:
readValueAsString in interface DecoderBlock
Throws:
java.io.IOException

skipToNextByteBoundary

public void skipToNextByteBoundary()
                            throws java.io.IOException
Specified by:
skipToNextByteBoundary in interface DecoderBlock
Throws:
java.io.IOException

getTypeDecoder

public TypeDecoder getTypeDecoder()
Specified by:
getTypeDecoder in interface DecoderBlock

EXIficient