public interface PipeListener
PipeListener
represents a pipe listener.
You can add a PipeListener
to a Pipe
to monitor the Pipe
.
Modifier and Type | Method and Description |
---|---|
void |
onError(Pipe pipe,
Exception exception)
This method will be called when an error occurred.
|
void |
onStarted(Pipe pipe)
This method will be called when the
Pipe started. |
void |
onStoped(Pipe pipe)
This method will be called when the
Pipe stopped. |
void |
onTransfered(Pipe pipe,
byte[] buffer,
int bufferLength)
This method will be called when the
Pipe transfered data. |
void onStarted(Pipe pipe)
Pipe
started.pipe
- The started Pipe
instance.void onStoped(Pipe pipe)
Pipe
stopped.pipe
- The stopped Pipe
instance.void onTransfered(Pipe pipe, byte[] buffer, int bufferLength)
Pipe
transfered data.pipe
- Pipe
instance.buffer
- Data which is transfered.bufferLength
- length of data.Copyright © 2015. All rights reserved.