GetTestData() public static method

public static GetTestData ( Stream @in, SpatialContext ctx ) : IEnumerator
@in Stream
ctx Spatial4n.Core.Context.SpatialContext
return IEnumerator
Beispiel #1
0
 protected virtual IEnumerator<SpatialTestData> getSampleData(String testDataFile)
 {
     String path = DATA_RESOURCE_PATH + testDataFile;
     Stream stream = GetType().getResourceAsStream(path);
     if (stream == null)
         throw new FileNotFoundException("classpath resource not found: " + path);
     return SpatialTestData.GetTestData(stream, ctx);//closes the InputStream
 }