public class RandomDataSource extends Object implements DataSource
| Constructor and Description |
|---|
RandomDataSource(int length) |
RandomDataSource(long seed,
int length) |
RandomDataSource(long seed,
int rangeStart,
int rangeEnd,
int length) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public RandomDataSource(long seed,
int rangeStart,
int rangeEnd,
int length)
public RandomDataSource(long seed,
int length)
public RandomDataSource(int length)
public String getName()
getName in interface DataSourcepublic String getContentType()
getContentType in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.