Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Methods inherited from interface cnrg.itx.datax.Statistics
`getStatistics`

Methods inherited from interface cnrg.itx.datax.Properties
`getProperties, setPeerProperties, setProperties`

Method Detail

### 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD