- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 1,068 for Encodings (0.05 seconds)
-
src/main/java/org/codelibs/core/io/ReaderUtil.java
* * @param is * the input stream (must not be {@literal null}) * @param encoding * the encoding of the input stream (must not be {@literal null} or empty) * @return a {@link Reader} to read from the file */ public static InputStreamReader create(final InputStream is, final String encoding) { assertArgumentNotNull("is", is);Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 4.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt
.build() } internal fun lookupDecompressor(encoding: String): DecompressionAlgorithm? = algorithms.find { it.encoding.equals(encoding, ignoreCase = true) } /** * A decompression algorithm such as Gzip. Must provide the Accept-Encoding value and decompress a Source. */ interface DecompressionAlgorithm { val encoding: String fun decompress(compressedSource: BufferedSource): Source
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 15:15:28 GMT 2025 - 2.9K bytes - Click Count (1) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractorTest.java
final String encoding = xmlExtractor.getEncoding(bis); CloseableUtil.closeQuietly(bis); assertEquals("Shift_JIS", encoding); } public void test_getEncoding_utf8bom() { final InputStream in = ResourceUtil.getResourceAsStream("extractor/xml/test_utf8bom.xml"); final BufferedInputStream bis = new BufferedInputStream(in); final String encoding = xmlExtractor.getEncoding(bis);
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sat Mar 15 06:52:00 GMT 2025 - 6.4K bytes - Click Count (0) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt
val s = "hello zstd world".encodeUtf8().zstdCompress() val response = response("https://example.com/", s) { header("Content-Encoding", "zstd") } val decompressed = zstdInterceptor.decompress(response) assertThat(decompressed.header("Content-Encoding")).isNull() val responseString = decompressed.body.string() assertThat(responseString).isEqualTo("hello zstd world") } @Test
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Aug 01 06:04:22 GMT 2025 - 4.8K bytes - Click Count (1) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/MarkdownExtractor.java
} /** * Gets the encoding for Markdown files. * * @return the encoding */ public String getEncoding() { return encoding; } /** * Sets the encoding for Markdown files. * * @param encoding the encoding */ public void setEncoding(final String encoding) { this.encoding = encoding; } /**Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Nov 23 03:46:53 GMT 2025 - 8.2K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/PropertiesUtil.java
assertArgumentNotNull("props", props); assertArgumentNotNull("file", file); assertArgumentNotEmpty("encoding", encoding); final Reader reader = ReaderUtil.create(file, encoding); try { props.load(reader); } catch (final IOException e) { throw new IORuntimeException(e); } finally { CloseableUtil.close(reader);
Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/OsddHelper.java
*/ public void setOsddPath(final String osddPath) { this.osddPath = osddPath; } /** * Sets the encoding. * * @param encoding the encoding */ public void setEncoding(final String encoding) { this.encoding = encoding; } /** * Sets the content type. * * @param contentType the content type */Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 4.7K bytes - Click Count (0) -
src/main/java/jcifs/util/Strings.java
private Strings() { } /** * Encodes a string into bytes using the specified encoding. * * @param str the string to encode * @param encoding the character encoding to use * @return encoded byte array, or empty array if str is null */ public static byte[] getBytes(final String str, final Charset encoding) { if (str == null) { return new byte[0]; }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.5K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java
assertFileExistence(dir, filename, true); File file = new File(dir, filename); String contents = FileUtils.fileRead(file, encoding); assertEquals(contentsTest, contents); } public File createFile(File dir, String filename, String contents, String encoding) throws IOException {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 4.8K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java
* @param params The parameter string. * @param paramList Additional parameters. * @param encoding The encoding. * @return The HttpEntity containing the parsed parameters. */ protected HttpEntity parseRequestParameters(final String params, final List<Pair<String, String>> paramList, final String encoding) { try { final List<BasicNameValuePair> parameters =Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 14.3K bytes - Click Count (1)