org.apache.clerezza.triaxrs.providers.provided
Class DataSourceProvider.ByteArrayDataSource

java.lang.Object
  extended by org.apache.clerezza.triaxrs.providers.provided.DataSourceProvider.ByteArrayDataSource
All Implemented Interfaces:
DataSource
Enclosing class:
DataSourceProvider

public static class DataSourceProvider.ByteArrayDataSource
extends Object
implements DataSource


Constructor Summary
DataSourceProvider.ByteArrayDataSource(InputStream is, String contentType)
           
 
Method Summary
 String getContentType()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceProvider.ByteArrayDataSource

public DataSourceProvider.ByteArrayDataSource(InputStream is,
                                              String contentType)
                                       throws IOException
Throws:
IOException
Method Detail

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.