com.softwareag.tamino.db.api.response.stream
Class TStreamInputStreamInterpreter

java.lang.Object
  extended by com.softwareag.tamino.db.api.response.TInputStreamInterpreter
      extended by com.softwareag.tamino.db.api.response.stream.TStreamInputStreamInterpreter

public class TStreamInputStreamInterpreter
extends TInputStreamInterpreter

TStreamInputStreamInterpreter is the implemenation for the interpreting as it is needed for pure Stream needs. This means that instantiated objects for query results are concrete TXMLObject instances each of which contains an input stream.

Version:
$Revision: 1.14 $
Author:
Marcus Schreyer

Nested Class Summary
protected static class TStreamInputStreamInterpreter.StreamBasedSAXObjectModel
          Inner class implementing a TSAXObjectModel.
 
Field Summary
 
Fields inherited from class com.softwareag.tamino.db.api.response.TInputStreamInterpreter
timeLogger
 
Constructor Summary
TStreamInputStreamInterpreter()
          Initializes the intperpreter.
 
Method Summary
protected  void doInterpret(TInputStream inputStream)
          Performs the concrete interpretation of the TInputStream according the physical object model.
 TResponseInfoContent getResponseInfoContent()
          Gets the TResultState object.
 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, getResponseQueryContent, interpret, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TStreamInputStreamInterpreter

public TStreamInputStreamInterpreter()
Initializes the intperpreter.

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. For the SAX specifie stream interpreter it is necessary to set here the QueryContentHandler which acts as an additional parameter here.

Specified by:
setProperty in class TInputStreamInterpreter

getResponseInfoContent

public TResponseInfoContent getResponseInfoContent()
Gets the TResultState object.

Overrides:
getResponseInfoContent in class TInputStreamInterpreter
Returns:
TResultState represents the result state abstraction.

doInterpret

protected void doInterpret(TInputStream inputStream)
                    throws TStreamInterpretException
Performs the concrete interpretation of the TInputStream according the physical object model. As a side effect the TResponseInfoContent object is generated. If the given TInputStream is related to a previous query command a TResponseQueryContent object is generated as well.

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


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