org.eclipse.emf.oda.ecore.impl
Class ResultSet.Blob

java.lang.Object
  extended by org.eclipse.emf.oda.ecore.impl.ResultSet.Blob
All Implemented Interfaces:
org.eclipse.datatools.connectivity.oda.IBlob
Enclosing class:
ResultSet

protected static class ResultSet.Blob
extends java.lang.Object
implements org.eclipse.datatools.connectivity.oda.IBlob

An implementation of IBlog for byte arrays.


Field Summary
protected  byte[] data
           
 
Constructor Summary
protected ResultSet.Blob(byte[] data)
           
 
Method Summary
 java.io.InputStream getBinaryStream()
           
 byte[] getBytes(long position, int length)
           
 long length()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected final byte[] data
Constructor Detail

ResultSet.Blob

protected ResultSet.Blob(byte[] data)
Method Detail

getBinaryStream

public java.io.InputStream getBinaryStream()
                                    throws org.eclipse.datatools.connectivity.oda.OdaException
Specified by:
getBinaryStream in interface org.eclipse.datatools.connectivity.oda.IBlob
Throws:
org.eclipse.datatools.connectivity.oda.OdaException

getBytes

public byte[] getBytes(long position,
                       int length)
                throws org.eclipse.datatools.connectivity.oda.OdaException
Specified by:
getBytes in interface org.eclipse.datatools.connectivity.oda.IBlob
Throws:
org.eclipse.datatools.connectivity.oda.OdaException

length

public long length()
            throws org.eclipse.datatools.connectivity.oda.OdaException
Specified by:
length in interface org.eclipse.datatools.connectivity.oda.IBlob
Throws:
org.eclipse.datatools.connectivity.oda.OdaException

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.