|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dyuproject.protostuff.Pipe
public abstract class Pipe
Transfers data from an Input to an Output.
It is recommended to use pipe only to stream data coming from server-side
services (e.g from your datastore/etc).
Incoming data from the interwebs should not be piped due to
validation/security purposes.
| Nested Class Summary | |
|---|---|
static class |
Pipe.Schema<T>
Schema for transferring data from a source ( Input) to a
different sink (Output). |
| Field Summary | |
|---|---|
protected Input |
input
|
protected Output |
output
|
| Constructor Summary | |
|---|---|
Pipe()
|
|
| Method Summary | ||
|---|---|---|
protected abstract Input |
begin(Pipe.Schema<?> pipeSchema)
Begin preliminary input processing. |
|
protected abstract void |
end(Pipe.Schema<?> pipeSchema,
Input input,
boolean cleanupOnly)
End input processing. |
|
protected Pipe |
reset()
Resets this pipe for re-use. |
|
static
|
transferDirect(Pipe.Schema<T> pipeSchema,
Pipe pipe,
Input input,
Output output)
This should not be called directly by applications. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Input input
protected Output output
| Constructor Detail |
|---|
public Pipe()
| Method Detail |
|---|
protected Pipe reset()
protected abstract Input begin(Pipe.Schema<?> pipeSchema)
throws java.io.IOException
java.io.IOException
protected abstract void end(Pipe.Schema<?> pipeSchema,
Input input,
boolean cleanupOnly)
throws java.io.IOException
cleanupOnly is true, the io processing ended prematurely hence the
underlying pipe should cleanup/close all resources that need to be.
java.io.IOException
public static <T> void transferDirect(Pipe.Schema<T> pipeSchema,
Pipe pipe,
Input input,
Output output)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||