In Java, resources can usually be accessed in two forms (see specifications of java.lang.ClassLoader in the [Java API Specification]):
Class Repo defines methods getResource(name) and getResourceAsStream(name). These methods allow resources in a test data repository to be accessed in both ways. Method getResourceAsStream(name) simply opens a connection to the URL returned from factory method getResource(name).