- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 42 for getResourceAsStream (0.09 seconds)
-
build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/JdkDownloadPluginFuncTest.groovy
if (vendor.equals(VENDOR_ADOPTIUM)) { return JdkDownloadPluginFuncTest.class.getResourceAsStream("fake_adoptium_" + effectivePlatform + "." + extension(platform)).getBytes() } else if (vendor.equals(VENDOR_OPENJDK)) { JdkDownloadPluginFuncTest.class.getResourceAsStream("fake_openjdk_" + effectivePlatform + "." + extension(platform)).getBytes() } }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 27 19:29:10 GMT 2021 - 10.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java
final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/bbb.html"; final String s = URLConnection.guessContentTypeFromStream(ResourceUtil.getResourceAsStream(path)); assertNull(s); final String contentType = MimeTypeUtil.guessContentType(path); assertEquals("text/html", contentType); } /** * Test method for
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.7K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/search/fetch/subphase/FetchSourcePhaseBenchmark.java
excludesFilters = FilterPath.compile(Set.of(fetchContext.excludes())); } private BytesReference read300BytesExample() throws IOException { return Streams.readFully(FetchSourcePhaseBenchmark.class.getResourceAsStream("300b_example.json")); } private BytesReference buildBigExample(String extraText) throws IOException { String bigger = read300BytesExample().utf8ToString();
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 13 17:34:14 GMT 2021 - 5.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTest.kt
"Parsing: <http://0Xc0.0250.01> against <http://other.com/>", ) private fun loadTests(): List<WebPlatformUrlTestData> { val resourceAsStream = WebPlatformUrlTest::class.java.getResourceAsStream( "/web-platform-test-urltestdata.txt", ) val source = resourceAsStream.source().buffer() return WebPlatformUrlTestData.load(source) } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 4.7K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
ClassLoader docLoader = initializeDocLoader(); for (String root : EXPRESSION_ROOTS) { try (InputStream docStream = docLoader.getResourceAsStream(EXPRESSION_DOCO_ROOTPATH + root + ".paramdoc.xml")) { if (docStream != null) { Map<String, Expression> doco = parseExpressionDocumentation(docStream);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.2K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
} public static Properties getBuildProperties() { Properties properties = new Properties(); try (InputStream resourceAsStream = MavenCli.class.getResourceAsStream("/org/apache/maven/messages/build.properties")) { if (resourceAsStream != null) { properties.load(resourceAsStream); } } catch (IOException e) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 08 08:49:11 GMT 2024 - 7.3K bytes - Click Count (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
companion object { internal const val NAME = "okcurl" internal const val DEFAULT_TIMEOUT = -1 private fun versionString(): String? { val prop = Properties() Main::class.java.getResourceAsStream("/okcurl-version.properties")?.use { prop.load(it) } return prop.getProperty("version", "dev") } @Suppress("TrustAllX509TrustManager", "CustomX509TrustManager")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/util/SettingsResourceLoader.java
throws IOException { final StringBuilder sb = new StringBuilder(); try (InputStream is = classLoader.getResourceAsStream(resourcePath)) { if (is == null) { throw new IOException("Resource not found: " + resourcePath); }Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 5.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java
} public static Properties getBuildProperties() { Properties properties = new Properties(); try (InputStream resourceAsStream = CLIReportingUtils.class.getResourceAsStream("/org/apache/maven/messages/build.properties")) { if (resourceAsStream != null) { properties.load(resourceAsStream); } } catch (IOException e) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Mar 10 15:37:54 GMT 2026 - 6.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java
} @Test public void test_parse() throws IOException { GsaConfigParser parser = new GsaConfigParser(); try (InputStream is = ResourceUtil.getResourceAsStream("data/gsaconfig.xml")) { parser.parse(new InputSource(is)); } parser.getWebConfig().ifPresent(c -> { logger.debug(c.toString()); }).orElse(() -> fail());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.7K bytes - Click Count (0)