Searched refs:resourceAsStream (Results 1 – 9 of 9) sorted by relevance
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()53 final URL resourceAsStream = relativeClass.getResource(resourceName); in readTextResource() local55 byte[] bytes = Files.readAllBytes(Paths.get(resourceAsStream.toURI())); in readTextResource()
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()
38 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local43 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()
237 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local242 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
696 try (InputStream resourceAsStream = getClass().getResourceAsStream(name)) { in getResourceContents() argument698 IOUtils.copy(resourceAsStream, bos); in getResourceContents()