cnrg.itx.datax
Interface Destination
- All Known Implementing Classes:
- NetworkDestination, StreamDestination, SpeakerDestination
- public abstract interface Destination
- extends Statistics, Properties
Inteface to abstract a destination. Any device that wants to behave like
a destination for the channel has to implement this interface.
Method Summary |
void |
close()
Method to close the destination device. |
boolean |
mute(boolean mode)
Method to mute the destination device. |
void |
write(byte[] data)
Method to implement the writing to the destination. |
write
public void write(byte[] data)
throws DataException
- Method to implement the writing to the destination.
- Parameters:
data
- the byte array to be written to the destination- Throws:
- DataException - thrown if the write method fails
mute
public boolean mute(boolean mode)
- Method to mute the destination device.
- Parameters:
mode
- true if the destination has to be muted, false otherwise- Returns:
- boolean true if mute succeeds, false otherwise
close
public void close()
- Method to close the destination device.