Class RandomDataSource
- java.lang.Object
-
- org.apache.axiom.testutils.activation.RandomDataSource
-
- All Implemented Interfaces:
DataSource
public class RandomDataSource extends Object implements DataSource
-
-
Constructor Summary
Constructors Constructor Description RandomDataSource(long length)RandomDataSource(long seed, int rangeStart, int rangeEnd, long length)RandomDataSource(long seed, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSource
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-
-