|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
DataSource defines an interface for classes that can express their content as data streams. A data source should support multiple simultaneous data streams by default, although implementing classes may also enforce different synchronization policies.
DataBuffer,
Type| Method Summary | |
boolean |
close()
After data soruce is no longer used, freeing resources can be requested explicitely by calling this method. |
DataStream |
getStream()
Gets a new data stream from the data source. |
java.lang.String |
toString(java.lang.String id,
java.lang.String dataName)
Returns a String representation of the DataSource. |
| Methods inherited from interface com.davisor.data.Data |
getType |
| Method Detail |
public boolean close()
Data streams that have already been retrieved from this data source may or may not be readable after this method call. Refer to the individual data source documention for details.
Note also that this method does not explicitely declare any expections. If closing fails, data source may return false to indicate a failure.
public DataStream getStream()
throws InvalidDataException
InvalidDataException
public java.lang.String toString(java.lang.String id,
java.lang.String dataName)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||