public class RequestTestDefWriter extends Object implements Closeable
RequestTestDef
object in the form of a JSON document.Constructor and Description |
---|
RequestTestDefWriter()
Creates a new RequestTestDefWriter object that writes to standard output.
|
RequestTestDefWriter(OutputStream stream)
Creates a new RequestTestDefWriter object that writes to the given stream.
|
RequestTestDefWriter(Writer writer)
Creates a new RequestTestDefWriter object that writes to the given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
void |
flush()
Flushes the writer.
|
protected Writer |
getWriter()
Returns the output stream for this writer.
|
protected void |
setWriter(Writer writer)
Changes the output stream for this writer.
|
void |
write(RequestTestDef requestTestDef)
Writes the given request cases in the form of a JSON document.
|
public RequestTestDefWriter()
public RequestTestDefWriter(OutputStream stream)
public RequestTestDefWriter(Writer writer)
public void write(RequestTestDef requestTestDef)
public void flush()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected void setWriter(Writer writer)
protected Writer getWriter()
Copyright © 2024 The Cornutum Project. All rights reserved.