Class TestDataSource
- java.lang.Object
- 
- javasoft.sqe.tests.api.javax.activation.TestClasses.TestDataSource
 
- 
- All Implemented Interfaces:
- javax.activation.DataSource
 
 public class TestDataSource extends java.lang.Object implements javax.activation.DataSourceA TestDataSource for the DataHandler tests. It will return a the passed in byte stream via the getinputstream method.
- 
- 
Constructor SummaryConstructors Constructor Description TestDataSource(byte[] byte_array)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()java.io.InputStreamgetInputStream()java.lang.StringgetName()java.io.OutputStreamgetOutputStream()
 
- 
- 
- 
Method Detail- 
getInputStreampublic java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
- getInputStreamin interface- javax.activation.DataSource
- Throws:
- java.io.IOException
 
 - 
getOutputStreampublic java.io.OutputStream getOutputStream() throws java.io.IOException- Specified by:
- getOutputStreamin interface- javax.activation.DataSource
- Throws:
- java.io.IOException
 
 - 
getContentTypepublic java.lang.String getContentType() - Specified by:
- getContentTypein interface- javax.activation.DataSource
 
 - 
getNamepublic java.lang.String getName() - Specified by:
- getNamein interface- javax.activation.DataSource
 
 
- 
 
-