Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

public class InputStreamDataSource
extends Object
implements DataSource

Author:
Bogdan Stefanescu

Constructor Summary
InputStreamDataSource(InputStream in, String ctype)
           
InputStreamDataSource(InputStream in, String ctype, String name)
           
 
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

InputStreamDataSource

public InputStreamDataSource(InputStream in,
                             String ctype)

InputStreamDataSource

public InputStreamDataSource(InputStream in,
                             String ctype,
                             String name)
Method Detail

getOutputStream

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

getName

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

getInputStream

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

getContentType

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.