com.softwareag.tamino.db.api.response.meager
Class TMeagerInputStreamInterpreter

java.lang.Object
  extended by com.softwareag.tamino.db.api.response.TInputStreamInterpreter
      extended by com.softwareag.tamino.db.api.response.meager.TMeagerInputStreamInterpreter

public class TMeagerInputStreamInterpreter
extends TInputStreamInterpreter

TMeagerInputStreamInterpreter interprets only the results which can be retrieved from the stream headers. This is requiered for performing optimized response handling. Currently, only the ino:returnValue and ino:id, ino:collection and ino:doctype is supported.

Version:
$Revision: 1.2 $
Author:
Stefan Liebig

Field Summary
 
Fields inherited from class com.softwareag.tamino.db.api.response.TInputStreamInterpreter
timeLogger
 
Constructor Summary
TMeagerInputStreamInterpreter()
          Create the �meager� input stream interpreter.
 
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

TMeagerInputStreamInterpreter

public TMeagerInputStreamInterpreter()
Create the �meager� input stream interpreter.

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 DOM 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.