|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.datax.devices.StreamDestination
Class to define a stream of data. Any valid output stream can be
represented by this class as a valid Destination
object.
Field Summary | |
private int |
bytesRead
Attribute for storing the number of bytes written to the stream. |
private int |
iDevice
Attribute for storing the device ID. |
private static int |
instances
Attribute for storing the device instance number. |
private java.io.OutputStream |
outStream
Private attribute to store the output stream object |
private Stats |
streamStats
Attribute for storing the stream destination statistics. |
Constructor Summary | |
StreamDestination(java.io.OutputStream outStream)
Constructor to create a stream destination. |
Method Summary | |
void |
close()
Method to close the stream |
PropertiesCollection |
getProperties()
Returns a collection of properties supported. |
Stats |
getStatistics()
Method to get the statistics of the output stream. |
boolean |
mute(boolean mute)
Method to mute the stream. |
void |
setPeerProperties(PropertiesCollection pc)
Interface to set the given properties collection into the device. |
void |
setProperties(PropertiesCollection pc)
Sets the given properties collection into the device |
void |
write(byte[] b)
Method to write data to the stream. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Stats streamStats
private java.io.OutputStream outStream
private int bytesRead
private static int instances
private int iDevice
Constructor Detail |
public StreamDestination(java.io.OutputStream outStream) throws DataException
OutputStream
- The output stream for this destinationMethod Detail |
public void write(byte[] b) throws DataException
b
- The array of bytes to write to the streampublic void close()
public boolean mute(boolean mute)
mute
- The mode of the mutepublic Stats getStatistics()
public PropertiesCollection getProperties() throws DataException
public void setProperties(PropertiesCollection pc) throws DataException
public void setPeerProperties(PropertiesCollection pc) throws DataException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |