Home
last modified time | relevance | path

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

/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/javaparser/javaparser-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()
/external/cldr/tools/java/org/unicode/cldr/util/
DFileReaders.java34 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local
39 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.java234 final InputStream resourceAsStream = class1.getResourceAsStream(file); in openFile() local
239 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()