Package com.nt.udc.node.util
Interface IStreamSource
- All Known Implementing Classes:
StreamSourceFileMgr
public interface IStreamSource
This interface is to be implemented by stream data sources.
- Since:
- JDK1.1.7
-
Method Details
-
getSourceName
String getSourceName()- Returns:
- The name of the source.
-
hasMoreData
boolean hasMoreData()- Returns:
- true if more input is available.
-
nextStream
InputStream nextStream() -
getRecoveryFile
File getRecoveryFile() -
initialize
boolean initialize()This function is called to initialize the data source. -
terminate
boolean terminate()This function is called to terminate the data source. -
start
boolean start()This function is called to start reading. Classes implementing IStreamSource may use it for initialization.- Returns:
- true if successful, false otherwise
-
end
boolean end()This function is called to end reading. Classes implementing IStreamSource may use it for clean-up operations.- Returns:
- true if successful, false otherwise
-