- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 298 for Decode (0.11 seconds)
-
src/test/java/org/codelibs/fess/util/FacetResponseTest.java
// Test that unicode strings are properly encoded/decoded String unicodeString = "日本語テスト"; String encoded = BaseEncoding.base64().encode(unicodeString.getBytes(StandardCharsets.UTF_8)); String decoded = new String(BaseEncoding.base64().decode(encoded), StandardCharsets.UTF_8); assertEquals(unicodeString, decoded); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 6.7K bytes - Click Count (0) -
src/main/java/org/codelibs/core/misc/Base64Util.java
* </p> * * @param inData * The data to decode * @return The decoded data, or null if the input is null or empty */ public static byte[] decode(final String inData) { if (StringUtil.isEmpty(inData)) { return null; } return Base64.getDecoder().decode(inData); }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 2.1K bytes - Click Count (0) -
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
final byte[] decoded = Base64Util.decode(encoded); assertEquals("Decoded should have same length", 2, decoded.length); assertEquals("First byte should match", twoBytes[0], decoded[0]); assertEquals("Second byte should match", twoBytes[1], decoded[1]); } /** * Test backward compatibility with standard Base64 * * @throws Exception */
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/user/exentity/User.java
return stream(getRoles()).get(stream -> stream.map(this::decode).toArray(n -> new String[n])); } @Override public String[] getGroupNames() { return stream(getGroups()).get(stream -> stream.map(this::decode).toArray(n -> new String[n])); } private String decode(final String value) { return new String(Base64.getDecoder().decode(value), Constants.CHARSET_UTF_8); } @Override
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 02 06:22:27 GMT 2026 - 4.1K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/Hc5IdnDnsResolver.java
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Jan 04 13:09:59 GMT 2026 - 4.5K bytes - Click Count (0) -
docs/en/docs/advanced/json-base64-bytes.md
{* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:9,29:35] hl[9] *} If you check the `/docs`, they will show that the field `data` expects base64 encoded bytes: <div class="screenshot"> <img src="/img/tutorial/json-base64-bytes/image01.png"> </div> You could send a request like:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.4K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
return decode(certificatePem, pkcs8Base64) } private fun decode( certificatePem: String, pkcs8Base64Text: String, ): HeldCertificate { val certificate = certificatePem.decodeCertificatePem() val pkcs8Bytes = pkcs8Base64Text.decodeBase64() ?: throw IllegalArgumentException("failed to decode private key")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 21.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/FacetResponse.java
*/ protected Map<String, Long> valueCountMap = new LinkedHashMap<>(); /** * The decoded name of the field. */ protected String name; /** * Constructs a Field from OpenSearch Terms aggregation. * Decodes the field name and processes all term buckets to extract * field values and their document counts. *Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Nov 23 11:39:05 GMT 2025 - 5.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/PermissionHelper.java
return permission; } /** * Decodes a search role format string back to a permission string. * Reverses the encoding process to restore original permission format. * * @param value the encoded permission string to decode * @return the decoded permission string, or null if the input is blank or invalid */ public String decode(final String value) { if (StringUtil.isBlank(value)) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 13 05:54:52 GMT 2025 - 15.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java
enc = encoding; } try { url = URLDecoder.decode(url, enc); } catch (final Exception e) { // Failed to decode URL, using original URL as-is if (getLogger().isDebugEnabled()) { getLogger().debug("Failed to decode URL with encoding {}: {}", enc, url, e); } } }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Dec 11 09:47:03 GMT 2025 - 14.1K bytes - Click Count (0)