|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.impl.command.ToChunkPipeFilter
class ToChunkPipeFilter
| Field Summary | |
|---|---|
private ChunkAdapter |
ca
. |
private Filter<Chunk,?> |
context
. |
| Constructor Summary | |
|---|---|
ToChunkPipeFilter()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the producer. |
void |
flush()
|
Class<Object> |
getConsumedType()
Returns the class of the consumed type. |
int |
getHeight()
Returns the screen height in chars. |
Class<Chunk> |
getProducedType()
Returns the class of the produced type. |
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. |
void |
open(ProducerContext<Chunk> context)
Open the producer with the specified context. |
void |
provide(Object element)
Provide an element. |
String |
readLine(String msg,
boolean echo)
Display a message and read a line on the console. |
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer. |
void |
setPiped(boolean piped)
Set the pipe status. |
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 |
| Field Detail |
|---|
private Filter<Chunk,?> context
private ChunkAdapter ca
| Constructor Detail |
|---|
ToChunkPipeFilter()
| Method Detail |
|---|
public Class<Chunk> getProducedType()
Producer
getProducedType in interface Producer<Chunk>public Class<Object> getConsumedType()
Consumer
getConsumedType in interface Consumer<Object>public void setPiped(boolean piped)
Producer
setPiped in interface Producer<Chunk>piped - the piped statuspublic void open(ProducerContext<Chunk> context)
Producer
open in interface Producer<Chunk>context - the contextpublic boolean takeAlternateBuffer()
InteractionContextFlushable.flush() method
is invoked.
takeAlternateBuffer in interface InteractionContext<Object>public boolean releaseAlternateBuffer()
InteractionContextFlushable.flush() method
is invoked.
releaseAlternateBuffer in interface InteractionContext<Object>
public void provide(Object element)
throws ScriptException,
IOException
Pipe
provide in interface Pipe<Object>element - the provided element
ScriptException
IOException
public void flush()
throws ScriptException,
IOException
flush in interface FlushableScriptException
IOException
public void close()
throws ScriptException
Producer
close in interface Closeableclose in interface Producer<Chunk>ScriptExceptionpublic String getProperty(String propertyName)
InteractionContext
getProperty in interface InteractionContext<Object>propertyName - the property name
public String readLine(String msg,
boolean echo)
InteractionContext
readLine in interface InteractionContext<Object>msg - the message to display before reading a lineecho - wether or not the line read should be echoed when typing
public int getWidth()
ScreenContext
getWidth in interface ScreenContext<Object>public int getHeight()
ScreenContext
getHeight in interface ScreenContext<Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||