public class SystemInputJsonWriter extends ContextHandler<SystemInputContext> implements Closeable
SystemInputDef
in the form of a JSON document.Constructor and Description |
---|
SystemInputJsonWriter()
Creates a new SystemInputJsonWriter object that writes to standard output.
|
SystemInputJsonWriter(OutputStream stream)
Creates a new SystemInputJsonWriter object that writes to the given stream.
|
SystemInputJsonWriter(Writer writer)
Creates a new SystemInputJsonWriter 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(SystemInputDef systemInput)
Writes the given system test definition the form of a JSON document.
|
doFor, getContext, getNotifier, notifyError, notifyError, notifyWarning, notifyWarning, resultFor, setNotifier
public SystemInputJsonWriter()
public SystemInputJsonWriter(OutputStream stream)
public SystemInputJsonWriter(Writer writer)
public void write(SystemInputDef systemInput)
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.