Home
last modified time | relevance | path

Searched refs:resourceAsStream (Results 1 – 9 of 9) sorted by relevance

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/
DTestUtils.java36 …try (final InputStream resourceAsStream = TestUtils.class.getClassLoader().getResourceAsStream(res… in readResource() argument
37 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() local
55 byte[] bytes = Files.readAllBytes(Paths.get(resourceAsStream.toURI())); in readTextResource()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DProviders.java87 InputStream resourceAsStream = classLoader.getResourceAsStream(pathToResource); in resourceProvider() local
88 if (resourceAsStream == null) { in resourceProvider()
91 return provider(resourceAsStream, encoding); in resourceProvider()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DConfigMerger.java85 try (InputStream resourceAsStream = getResourceAsStream(resourceName)) { in getConfigProperties() argument
86 if (resourceAsStream == null) return null; in getConfigProperties()
88 properties.load(resourceAsStream); in getConfigProperties()
DRobolectricTestRunner.java448 …InputStream resourceAsStream = getClass().getResourceAsStream("/com/android/tools/test_config.prop… in getBuildSystemApiProperties() local
449 if (resourceAsStream == null) { in getBuildSystemApiProperties()
455 properties.load(resourceAsStream); in getBuildSystemApiProperties()
461 resourceAsStream.close(); in getBuildSystemApiProperties()
/external/cldr/tools/java/org/unicode/cldr/util/
DFileReaders.java38 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local
43 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DXCldrStub.java352 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local
356 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DXCldrStub.java390 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local
394 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
/external/cldr/tools/java/org/unicode/cldr/draft/
DFileUtilities.java237 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local
242 InputStreamReader reader = new InputStreamReader(resourceAsStream, charset); in openFile()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/tar/
DTarArchiveOutputStreamTest.java696 try (InputStream resourceAsStream = getClass().getResourceAsStream(name)) { in getResourceContents() argument
698 IOUtils.copy(resourceAsStream, bos); in getResourceContents()