Package ch.acanda.maven.springbanner
Class PrintDirectionInterceptor
- java.lang.Object
-
- java.io.InputStream
-
- ch.acanda.maven.springbanner.PrintDirectionInterceptor
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class PrintDirectionInterceptor extends InputStream
This works around a bug in dtmo-jfiglet 1.0.0 that renders text by default right-to-left instead of left-to-right. See GitHub issue Default print direction. This class can be removed when the bug is fixed.If the font does not define a print direction, this interceptor inserts the default left-to-right print direction.
-
-
Constructor Summary
Constructors Constructor Description PrintDirectionInterceptor(InputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
PrintDirectionInterceptor
public PrintDirectionInterceptor(InputStream stream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
-