Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client.jaxrs.util
Class BlobDataSource

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.jaxrs.util.BlobDataSource
All Implemented Interfaces:
DataSource

public class BlobDataSource
extends Object
implements DataSource

Author:
Bogdan Stefanescu

Constructor Summary
BlobDataSource(Blob blob)
           
 
Method Summary
 String getContentType()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobDataSource

public BlobDataSource(Blob blob)
Method Detail

getContentType

public String getContentType()
Specified by:
getContentType in interface DataSource

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface DataSource
Throws:
IOException

getName

public String getName()
Specified by:
getName in interface DataSource

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface DataSource
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.