org.nuxeo.ecm.automation.server.jaxrs.io
Class InputStreamDataSource
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.io.InputStreamDataSource
- All Implemented Interfaces:
- DataSource
public class InputStreamDataSource
- extends Object
- implements DataSource
- Author:
- Bogdan Stefanescu
InputStreamDataSource
public InputStreamDataSource(InputStream in,
String ctype)
InputStreamDataSource
public InputStreamDataSource(InputStream in,
String ctype,
String name)
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.