Package org.assertj.db.output
Class AbstractOutputter<E extends AbstractOutputter<E>>
java.lang.Object
org.assertj.db.global.AbstractElement<E>
org.assertj.db.output.AbstractOutputter<E>
- Type Parameters:
E
- the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
- All Implemented Interfaces:
org.assertj.core.api.Descriptable<E>
- Direct Known Subclasses:
AbstractDbOutputter
,AbstractOutputterWithOrigin
Base class for all output of assertj-db.
- Since:
- 1.1.0
- Author:
- Régis Pouiller
-
Field Summary
FieldsFields inherited from class org.assertj.db.global.AbstractElement
info, myself
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
Returns the output for the outputOutputthis
to theSystem.out
.Outputthis
to a file.toStream
(OutputStream outputStream) Outputthis
to theOutputStream
.Changes the type of the output.Methods inherited from class org.assertj.db.global.AbstractElement
as, as, describedAs, describedAs, getInfo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as
-
Field Details
-
outputType
Type of output.
-
-
Method Details
-
withType
Changes the type of the output.- Parameters:
outputType
- Type of output.- Returns:
this
output object.
-
getOutput
Returns the output for the output- Parameters:
outputType
- Type of output.- Returns:
- The output.
-
toConsole
Outputthis
to theSystem.out
.- Returns:
this
output object.
-
toStream
Outputthis
to theOutputStream
.- Parameters:
outputStream
-OutputStream
to use for output.- Returns:
this
output object.
-
toFile
Outputthis
to a file.- Parameters:
fileName
- The file name.- Returns:
this
output object.- Throws:
AssertJDBException
- If exception in IO.
-