|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.shell.impl.command.PipeFilter<C,P>
abstract class PipeFilter<C,P>
Nested Class Summary | |
---|---|
(package private) static class |
PipeFilter.Chunkizer
|
(package private) static class |
PipeFilter.Noop<P>
|
(package private) static class |
PipeFilter.Sink<P>
|
Field Summary | |
---|---|
protected CommandContext<P> |
context
. |
protected boolean |
piped
. |
Constructor Summary | |
---|---|
protected |
PipeFilter(boolean piped)
|
Method Summary | |
---|---|
Map<String,Object> |
getAttributes()
Returns the current attributes. |
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. |
Map<String,Object> |
getSession()
Returns the current session. |
int |
getWidth()
Returns the screen width in chars. |
boolean |
isPiped()
|
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 |
Methods inherited from interface org.crsh.io.Consumer |
---|
getConsumedType, provide |
Methods inherited from interface java.io.Flushable |
---|
flush |
Field Detail |
---|
protected CommandContext<P> context
protected final boolean piped
Constructor Detail |
---|
protected PipeFilter(boolean piped)
Method Detail |
---|
public final boolean isPiped()
isPiped
in interface CommandContext<C>
public final boolean takeAlternateBuffer() throws IOException
InteractionContext
Flushable.flush()
method
is invoked.
takeAlternateBuffer
in interface InteractionContext<C>
IOException
public final boolean releaseAlternateBuffer() throws IOException
InteractionContext
Flushable.flush()
method
is invoked.
releaseAlternateBuffer
in interface InteractionContext<C>
IOException
public 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>
public Map<String,Object> getSession()
RuntimeContext
getSession
in interface RuntimeContext
public Map<String,Object> getAttributes()
RuntimeContext
getAttributes
in interface RuntimeContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |