org.encog.persist.source
Class ObtainFallbackStream
- java.lang.Object
-
- org.encog.persist.source.ObtainFallbackStream
-
- All Implemented Interfaces:
- ObtainInputStream
public class ObtainFallbackStream extends java.lang.Object implements ObtainInputStream
A fallback stream that will attempt to read from the resource first, failing that, read from a file.
-
-
Constructor Summary
Constructors Constructor and Description ObtainFallbackStream(java.lang.String thePath, java.lang.String theDatasetName, java.lang.Class theResources)Construct the source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.io.InputStreamobtain()
-
-
-
Constructor Detail
-
ObtainFallbackStream
public ObtainFallbackStream(java.lang.String thePath, java.lang.String theDatasetName, java.lang.Class theResources)Construct the source.- Parameters:
thePath- The path.theDatasetName- The name of the dataset.theResources- Where to pull the resources from.
-
-
Method Detail
-
obtain
public java.io.InputStream obtain()
- Specified by:
obtainin interfaceObtainInputStream- Returns:
- An input stream.
-
-
DMelt 3.0 © DataMelt by jWork.ORG