E - the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public abstract class AbstractOutputter<E extends AbstractOutputter<E>> extends AbstractElement<E>
| Modifier and Type | Field and Description |
|---|---|
protected Output |
outputType
Type of output.
|
info, myself| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getOutput(Output outputType)
Returns the output for the output
|
E |
toConsole()
Output
this to the System.out. |
E |
toFile(String fileName)
Output
this to a file. |
E |
toStream(OutputStream outputStream)
Output
this to the OutputStream. |
E |
withType(Output outputType)
Changes the type of the output.
|
as, as, describedAs, describedAs, getInfoprotected Output outputType
public E withType(Output outputType)
outputType - Type of output.this output object.protected abstract String getOutput(Output outputType)
outputType - Type of output.public E toConsole()
this to the System.out.this output object.public E toStream(OutputStream outputStream)
this to the OutputStream.outputStream - OutputStream to use for output.this output object.public E toFile(String fileName)
this to a file.fileName - The file name.this output object.AssertJDBException - If exception in IO.Copyright © 2020 AssertJ. All rights reserved.