Package hec.util.transformation.dss.read
Class DssReader
java.lang.Object
hec.util.transformation.dss.read.DssReader
- All Implemented Interfaces:
Reader<DssReaderController>
This class is intended to read in data from the DssReaderController, and then write it out to a
DssReadData object, which is then returned.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HecDssopenDssFile(Path dssFileName) This is protected so we're able to extend this and change it for unit tests.read(DssReaderController controller) protected DataContainerreadDssData(HecDss dssFile, DSSPathname dssPath, HecTime startTime, HecTime endTime) This is protected so we're able to extend this and change it for unit tests.
-
Constructor Details
-
DssReader
public DssReader()
-
-
Method Details
-
getControllerClass
- Specified by:
getControllerClassin interfaceReader<DssReaderController>
-
read
- Specified by:
readin interfaceReader<DssReaderController>- Throws:
ReaderException
-
openDssFile
This is protected so we're able to extend this and change it for unit tests.- Parameters:
dssFileName-- Returns:
- Throws:
ReaderException
-
readDssData
protected DataContainer readDssData(HecDss dssFile, DSSPathname dssPath, HecTime startTime, HecTime endTime) throws ReaderException This is protected so we're able to extend this and change it for unit tests.- Parameters:
dssFile-dssPath-startTime-endTime-- Returns:
- Throws:
ReaderException
-