Package | Description |
---|---|
com.github.wuic.nut |
This package defines what is a nut in WUIC and how to manage it.
|
com.github.wuic.util |
Utility package where helper methods are defined.
|
Modifier and Type | Method and Description |
---|---|
List<Pipe.OnReady> |
NutWrapper.getReadyCallbacks()
Gets the callbacks notified when transformation has been done.
|
List<Pipe.OnReady> |
ConvertibleNut.getReadyCallbacks()
Gets the callbacks notified when transformation has been done.
|
List<Pipe.OnReady> |
AbstractConvertibleNut.getReadyCallbacks()
Gets the callbacks notified when transformation has been done.
|
Modifier and Type | Method and Description |
---|---|
void |
NutWrapper.onReady(Pipe.OnReady onReady)
Adds the given callback to be invoked once transformation occurs.
|
void |
ConvertibleNut.onReady(Pipe.OnReady onReady)
Adds the given callback to be invoked once transformation occurs.
|
void |
AbstractConvertibleNut.onReady(Pipe.OnReady callback)
Adds the given callback to be invoked once transformation occurs.
|
void |
TransformedNut.transform(Pipe.OnReady... onReady)
Transforms the source stream with all registered transformers and calls the given callback in addition
to callbacks previously registered.
|
void |
PipedConvertibleNut.transform(Pipe.OnReady... onReady)
Transforms the source stream with all registered transformers and calls the given callback in addition
to callbacks previously registered.
|
void |
NutWrapper.transform(Pipe.OnReady... onReady)
Transforms the source stream with all registered transformers and calls the given callback in addition
to callbacks previously registered.
|
void |
NotReachableNut.transform(Pipe.OnReady... onReady)
Transforms the source stream with all registered transformers and calls the given callback in addition
to callbacks previously registered.
|
void |
ConvertibleNut.transform(Pipe.OnReady... onReady)
Transforms the source stream with all registered transformers and calls the given callback in addition
to callbacks previously registered.
|
void |
CompositeNut.transform(Pipe.OnReady... onReady)
Transforms the source stream with all registered transformers and calls the given callback in addition
to callbacks previously registered.
|
Modifier and Type | Method and Description |
---|---|
static void |
PipedConvertibleNut.transform(ConvertibleNut convertibleNut,
Set<Pipe.Transformer<ConvertibleNut>> transformers,
List<Pipe.OnReady> callbacks)
Apply transformers by chaining each transformer specified in the given list.
|
Modifier and Type | Class and Description |
---|---|
static class |
Pipe.DefaultOnReady
Default implementation which writes the result to a wrapped output stream and close if automatically.
|
Modifier and Type | Method and Description |
---|---|
void |
Pipe.execute(Pipe.OnReady... onReady)
Executes this pipe by writing a byte array the result generated by all
registered
transformers . |
Modifier and Type | Method and Description |
---|---|
static <T> void |
Pipe.executeAndWriteTo(Pipe<T> pipe,
List<Pipe.OnReady> callbacks,
OutputStream os)
Executes the given pipe and writes the result into the given
OutputStream . |
Copyright © 2012-2015. All Rights Reserved.