org.apache.clerezza.triaxrs.providers.provided
Class DataSourceProvider.ByteArrayDataSource
java.lang.Object
org.apache.clerezza.triaxrs.providers.provided.DataSourceProvider.ByteArrayDataSource
- All Implemented Interfaces:
- DataSource
- Enclosing class:
- DataSourceProvider
public static class DataSourceProvider.ByteArrayDataSource
- extends Object
- implements DataSource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceProvider.ByteArrayDataSource
public DataSourceProvider.ByteArrayDataSource(InputStream is,
String contentType)
throws IOException
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType in interface DataSource
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream in interface DataSource
getName
public String getName()
- Specified by:
getName in interface DataSource
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream in interface DataSource
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.