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 StringReturns the output for the outputOutputthisto theSystem.out.Outputthisto a file.toStream(OutputStream outputStream) Outputthisto theOutputStream.Changes the type of the output.Methods inherited from class org.assertj.db.global.AbstractElement
as, as, describedAs, describedAs, getInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
thisoutput object.
-
getOutput
Returns the output for the output- Parameters:
outputType- Type of output.- Returns:
- The output.
-
toConsole
Outputthisto theSystem.out.- Returns:
thisoutput object.
-
toStream
Outputthisto theOutputStream.- Parameters:
outputStream-OutputStreamto use for output.- Returns:
thisoutput object.
-
toFile
Outputthisto a file.- Parameters:
fileName- The file name.- Returns:
thisoutput object.- Throws:
AssertJDBException- If exception in IO.
-