com.metamatrix.common.vdb.api
Class VDBStreamImpl

java.lang.Object
  extended by com.metamatrix.common.vdb.api.VDBStreamImpl
All Implemented Interfaces:
VDBStream

public class VDBStreamImpl
extends java.lang.Object
implements VDBStream


Constructor Summary
VDBStreamImpl(byte[] contents)
           
VDBStreamImpl(java.io.File file)
           
 
Method Summary
 java.io.File getFile()
          return as File Source
 java.io.InputStream getInputStream()
          Return the Input Stream into VDB contents
 byte[] toByteArray()
          return the VDB contents as byte array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VDBStreamImpl

public VDBStreamImpl(java.io.File file)

VDBStreamImpl

public VDBStreamImpl(byte[] contents)
Method Detail

getFile

public java.io.File getFile()
Description copied from interface: VDBStream
return as File Source

Specified by:
getFile in interface VDBStream
Returns:
File; null if resource not available

getInputStream

public java.io.InputStream getInputStream()
Description copied from interface: VDBStream
Return the Input Stream into VDB contents

Specified by:
getInputStream in interface VDBStream
Returns:
InputStream; null if resource not available

toByteArray

public byte[] toByteArray()
Description copied from interface: VDBStream
return the VDB contents as byte array

Specified by:
toByteArray in interface VDBStream
Returns:
byte[] - null if resource not available


Copyright © 2009. All Rights Reserved.