at.gv.egovernment.moa.spss.server.iaik.xml
Class ByteStreamDataObjectImpl

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.iaik.xml.DataObjectImpl
        |
        +--at.gv.egovernment.moa.spss.server.iaik.xml.ByteStreamDataObjectImpl
All Implemented Interfaces:
iaik.server.modules.xml.BinaryDataObject, iaik.server.modules.xml.DataObject

public class ByteStreamDataObjectImpl
extends DataObjectImpl
implements iaik.server.modules.xml.BinaryDataObject

A BinaryDataObject encapsulating binary data from a stream.

Version:
$Id$
Author:
Patrick Peck

Constructor Summary
ByteStreamDataObjectImpl(InputStream inputStream)
          Create a new ByteStreamDataObjectImpl.
 
Method Summary
 InputStream getInputStream()
          Return the binary data from this object as a stream.
 void setInputStream(InputStream inputStream)
          Set the input stream from which to read the binary data.
 
Methods inherited from class at.gv.egovernment.moa.spss.server.iaik.xml.DataObjectImpl
getMimeType, getReferenceID, getTypeURI, getURI, setMimeType, setReferenceID, setTypeURI, setURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface iaik.server.modules.xml.DataObject
getMimeType, getReferenceID, getTypeURI, getURI
 

Constructor Detail

ByteStreamDataObjectImpl

public ByteStreamDataObjectImpl(InputStream inputStream)
Create a new ByteStreamDataObjectImpl.
Parameters:
inputStream - The stream from which to read the binary data.
Method Detail

setInputStream

public void setInputStream(InputStream inputStream)
Set the input stream from which to read the binary data.
Parameters:
inputStream - The input stream from which to read the binary data.

getInputStream

public InputStream getInputStream()
Return the binary data from this object as a stream.
Specified by:
getInputStream in interface iaik.server.modules.xml.BinaryDataObject
Returns:
The stream containing the binary data. Calling this function repeatedly will always return the same InputStream.
See Also:
BinaryDataObject.getInputStream()