org.crsh.io
Interface Consumer<C>
- Type Parameters:
C
- the consumed element generic type
- All Superinterfaces:
- Flushable
- All Known Subinterfaces:
- CommandContext<P>, CommandInvoker<C,P>, Filter<C,P,CONS>, InteractionContext<E>, InvocationContext<P>, ScreenContext<E>, ShellProcessContext, Term
- All Known Implementing Classes:
- ChunkAdapter, ChunkBuffer, ClientProcessContext, ConsoleTerm, CRaSHProcessContext, GroovyScriptCommand, InnerInvocationContext, InvocationContextImpl, JLineProcessContext, Pipe, PipeCommandProxy, PipeFilter, PipeFilter.Chunkizer, PipeFilter.Noop, PipeFilter.Sink, PipeLine, ProcessContext, Processor, RenderAppendable, RenderWriter, SSHInlineShellProcessContext
-
public interface Consumer<C>
- extends Flushable
-
Defines the interface for a consumer.
Method Summary |
Class<C> |
getConsumedType()
Returns the class of the element generic type. |
void |
provide(C element)
Provide an element. |
Methods inherited from interface java.io.Flushable |
flush |
provide
void provide(C element)
throws IOException
-
Provide an element.
-
-
- Parameters:
element
- the provided element
- Throws:
IOException
getConsumedType
Class<C> getConsumedType()
-
Returns the class of the element generic type.
-
-
- Returns:
- the consumed type
Copyright © 2014 eXo Platform SAS. All Rights Reserved.