|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.impl.command.Pipe<C,P>
abstract class Pipe<C,P>
| Nested Class Summary | |
|---|---|
(package private) static class |
Pipe.Chunkizer
|
(package private) static class |
Pipe.Invoker<C,P>
A pipe filter that invokes a command through a CommandInvoker. |
(package private) static class |
Pipe.Sink<P>
|
| Field Summary | |
|---|---|
protected InteractionContext<P> |
context
. |
| Constructor Summary | |
|---|---|
Pipe()
|
|
| Method Summary | |
|---|---|
int |
getHeight()
Returns the screen height in chars. |
String |
getProperty(String propertyName)
Returns a generic property, usually this property is resolved by the shell client. |
int |
getWidth()
Returns the screen width in chars. |
String |
readLine(String msg,
boolean echo)
Display a message and read a line on the console. |
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer. |
boolean |
takeAlternateBuffer()
Take control of the alternate buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.crsh.io.Producer |
|---|
close, getProducedType, open, setPiped |
| Methods inherited from interface org.crsh.io.Consumer |
|---|
getConsumedType, provide |
| Methods inherited from interface java.io.Flushable |
|---|
flush |
| Field Detail |
|---|
protected InteractionContext<P> context
| Constructor Detail |
|---|
Pipe()
| Method Detail |
|---|
public final boolean takeAlternateBuffer()
throws IOException
InteractionContextFlushable.flush() method
is invoked.
takeAlternateBuffer in interface InteractionContext<C>IOException
public final boolean releaseAlternateBuffer()
throws IOException
InteractionContextFlushable.flush() method
is invoked.
releaseAlternateBuffer in interface InteractionContext<C>IOExceptionpublic final String getProperty(String propertyName)
InteractionContext
getProperty in interface InteractionContext<C>propertyName - the property name
public final String readLine(String msg,
boolean echo)
InteractionContext
readLine in interface InteractionContext<C>msg - the message to display before reading a lineecho - wether or not the line read should be echoed when typing
public final int getWidth()
ScreenContext
getWidth in interface ScreenContext<C>public final int getHeight()
ScreenContext
getHeight in interface ScreenContext<C>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||