com.softwareag.tamino.db.api.response.sax.helper
Class TSaxHelperInputStreamInterpreter

java.lang.Object
  extended by com.softwareag.tamino.db.api.response.TInputStreamInterpreter
      extended by com.softwareag.tamino.db.api.response.sax.helper.TSaxHelperInputStreamInterpreter

public class TSaxHelperInputStreamInterpreter
extends TInputStreamInterpreter

TSaxHelperInputStreamInterpreter is the implemenation for the interpreting as it is needed for SODOM needs. This means that instantiated objects for query results are concrete TXMLObject instances with an underlying SODOM object model.
The SODOM object model is an clone of the JDOM Beta 8 object model and this input stream interpreter is a clone of the TJDOMInputStreamInterpreter.

Version:
$Revision: 1.7 $
Author:
Marcus Schreyer

Constructor Summary
TSaxHelperInputStreamInterpreter()
           
TSaxHelperInputStreamInterpreter(java.lang.String parserName)
           
 
Method Summary
protected  void doInterpret(TInputStream inputStream)
          Interprets the a general inputStream in a generic fashion.
 void setProperty(java.lang.String key, java.lang.Object value)
          Sets a generic property on the concrete interpreter instance.
 
Methods inherited from class com.softwareag.tamino.db.api.response.TInputStreamInterpreter
getLocale, getResponseInfoContent, getResponseQueryContent, interpret, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSaxHelperInputStreamInterpreter

public TSaxHelperInputStreamInterpreter(java.lang.String parserName)

TSaxHelperInputStreamInterpreter

public TSaxHelperInputStreamInterpreter()
Method Detail

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
Sets a generic property on the concrete interpreter instance. The properties that can actually be set depend on the TXMLObjectModel that is related to the concrete interpreter. Each interpreter that might be instantiated is related to a TXMLObjectModel. Here the user can set specific properties that might be relevant as additional parameters to the interpreter. This method does nothing for the JDOM specific interpreter.

Specified by:
setProperty in class TInputStreamInterpreter

doInterpret

protected void doInterpret(TInputStream inputStream)
                    throws TStreamInterpretException
Interprets the a general inputStream in a generic fashion. As a consequence only the result state will be obtained.

Specified by:
doInterpret in class TInputStreamInterpreter
Parameters:
inputStream - is the InputStream for a response to a previous operation on Tamino.
Throws:
TStreamInterpretException - when interpreting errors occur.


Copyright (c) 2013 Software AG. All Rights Reserved.