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