Package io.trino.cli
Class Pager
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- io.trino.cli.Pager
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class Pager extends FilterOutputStream
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static Pagercreate()static Pagercreate(List<String> command)voidflush()CompletableFuture<?>getFinishFuture()booleanisNullPager()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.FilterOutputStream
write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Field Detail
-
ENV_PAGER
public static final String ENV_PAGER
- See Also:
- Constant Field Values
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-
isNullPager
public boolean isNullPager()
-
write
public void write(int b) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classFilterOutputStream- Throws:
IOException
-
getFinishFuture
public CompletableFuture<?> getFinishFuture()
-
create
public static Pager create()
-
-