public class JsonDataGeneratorImpl extends Object implements JsonDataGenerator
JsonDataGenerator| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_READ_AHEAD_LIMIT |
static String |
REPEAT |
| Constructor and Description |
|---|
JsonDataGeneratorImpl() |
JsonDataGeneratorImpl(FunctionRegistry functionRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateTestDataJson(File file,
File outputFile)
Generate json test data
|
void |
generateTestDataJson(File file,
OutputStream outputStream)
Generate json test data
|
void |
generateTestDataJson(InputStream inputStream,
OutputStream outputStream)
Generate json test data
|
void |
generateTestDataJson(String text,
OutputStream outputStream)
Generate json test data
|
void |
generateTestDataJson(URL classPathResource,
OutputStream outputStream)
Generate json test data
|
public static final String REPEAT
public static final int DEFAULT_READ_AHEAD_LIMIT
public JsonDataGeneratorImpl(FunctionRegistry functionRegistry)
public JsonDataGeneratorImpl()
public void generateTestDataJson(String text, OutputStream outputStream) throws JsonDataGeneratorException
generateTestDataJson in interface JsonDataGeneratortext - source json textoutputStream - stream to write the test data to.
You are responsible for closing your own OutputStream.JsonDataGeneratorException - default exception thrown when using the data generatorpublic void generateTestDataJson(URL classPathResource, OutputStream outputStream) throws JsonDataGeneratorException
generateTestDataJson in interface JsonDataGeneratorclassPathResource - url of source json text on classpathoutputStream - stream to write the test data to.
You are responsible for closing your own OutputStream.JsonDataGeneratorException - default exception thrown when using the data generatorpublic void generateTestDataJson(File file, OutputStream outputStream) throws JsonDataGeneratorException
generateTestDataJson in interface JsonDataGeneratorfile - file of source json textoutputStream - stream to write the test data to.
You are responsible for closing your own OutputStream.JsonDataGeneratorException - default exception thrown when using the data generatorpublic void generateTestDataJson(File file, File outputFile) throws JsonDataGeneratorException
generateTestDataJson in interface JsonDataGeneratorfile - file of source json textoutputFile - file to write the test data to.JsonDataGeneratorException - default exception thrown when using the data generatorpublic void generateTestDataJson(InputStream inputStream, OutputStream outputStream) throws JsonDataGeneratorException
generateTestDataJson in interface JsonDataGeneratorinputStream - inputstream source json text. You are responsible for closing
your own InputStream.outputStream - stream to write the test data to. You are responsible for
closing your own OutputStream.JsonDataGeneratorException - default exception thrown when using the data generatorCopyright © 2022. All rights reserved.