Searched refs:resourceAsStream (Results 1 – 9 of 9) sorted by relevance
87 InputStream resourceAsStream = classLoader.getResourceAsStream(pathToResource); in resourceProvider() local88 if (resourceAsStream == null) { in resourceProvider()91 return provider(resourceAsStream, encoding); in resourceProvider()
85 try (InputStream resourceAsStream = getResourceAsStream(resourceName)) { in getConfigProperties() argument86 if (resourceAsStream == null) return null; in getConfigProperties()88 properties.load(resourceAsStream); in getConfigProperties()
448 …InputStream resourceAsStream = getClass().getResourceAsStream("/com/android/tools/test_config.prop… in getBuildSystemApiProperties() local449 if (resourceAsStream == null) { in getBuildSystemApiProperties()455 properties.load(resourceAsStream); in getBuildSystemApiProperties()461 resourceAsStream.close(); in getBuildSystemApiProperties()
36 …try (final InputStream resourceAsStream = TestUtils.class.getClassLoader().getResourceAsStream(res… in readResource() argument37 if (resourceAsStream == null) { in readResource()40 try (final InputStreamReader reader = new InputStreamReader(resourceAsStream, "utf-8"); in readResource()
34 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local39 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
352 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local356 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
390 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local394 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
234 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local239 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
696 try (InputStream resourceAsStream = getClass().getResourceAsStream(name)) { in getResourceContents() argument698 IOUtils.copy(resourceAsStream, bos); in getResourceContents()