- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 336 for getBytes (0.06 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/MarkdownExtractor.java
@Override public ExtractData getText(final InputStream in, final Map<String, String> params) { validateInputStream(in); try { final String content = new String(InputStreamUtil.getBytes(in), getEncoding()); final Node document = parser.parse(content); // Extract plain text final String plainText = textRenderer.render(document);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 03:46:53 UTC 2025 - 8.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractorTest.java
assertTrue(content.contains("タイトル2")); assertTrue(content.contains("リンク1")); } public void test_getHtml_empty() { final InputStream in = new ByteArrayInputStream("".getBytes()); final String content = htmlXpathExtractor.getText(in, null).getContent(); CloseableUtil.closeQuietly(in); logger.info(content); assertEquals("", content); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/DictionaryCreator.java
* * @param path the file path to encode * @return the Base64 encoded path */ protected String encodePath(final String path) { return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8)); } /** * Checks if the given path matches this creator's pattern. * * @param path the file path to checkRegistered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
* It should write the dialect string to the destination array. */ @Test void testWriteBytesWireFormat() throws UnsupportedEncodingException { byte[] expectedBytes = DIALECTS.getBytes("ASCII"); byte[] dst = new byte[expectedBytes.length]; int dstIndex = 0; // Execute the method to write bytes int bytesWritten = smbComNegotiate.writeBytesWireFormat(dst, dstIndex);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
random.nextBytes(bytes); String s = new String(bytes, UTF_16LE); // so all random strings are valid assertEquals( new TestHasher().putUnencodedChars(s).hash(), new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash()); assertEquals( new TestHasher().putUnencodedChars(s).hash(), new TestHasher().putString(s, UTF_16LE).hash()); } } public void testFloat() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
for (int i = 2; i < 6; i++) { assertEquals((byte) 0x00, dst[i], "Reserved byte at index " + i + " should be 0."); } // Check filename byte[] filenameBytes = filename.getBytes(); for (int i = 0; i < filenameBytes.length; i++) { assertEquals(filenameBytes[i], dst[6 + i], "Filename byte at index " + i + " should match."); } // Check null terminator
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java
buffer.putChar(input.charAt(i)); } return hashBytes(buffer.array()); } @Override public HashCode hashString(CharSequence input, Charset charset) { return hashBytes(input.toString().getBytes(charset)); } @Override public abstract HashCode hashBytes(byte[] input, int off, int len); @Override public HashCode hashBytes(ByteBuffer input) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 04 15:39:10 UTC 2025 - 4.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java
resultData.setData(data.getBytes(charsetName)); } catch (final UnsupportedEncodingException e) { if (logger.isInfoEnabled()) { logger.info("Invalid charsetName: " + charsetName + ". Changed to " + Constants.UTF_8, e); } charsetName = Constants.UTF_8_CHARSET.name(); resultData.setData(data.getBytes(Constants.UTF_8_CHARSET)); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 23.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
File i18nFile = getTestFile("i18n.txt"); assertThat(Files.toByteArray(asciiFile)).isEqualTo(ASCII.getBytes(US_ASCII)); assertThat(Files.toByteArray(i18nFile)).isEqualTo(I18N.getBytes(UTF_8)); assertThat(Files.asByteSource(i18nFile).read()).isEqualTo(I18N.getBytes(UTF_8)); } /** A {@link File} that provides a specialized value for {@link File#length()}. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 22.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSinkTester.java
suite.addTest(stringSuite); } return suite; } private static TestSuite suiteForString( String name, ByteSinkFactory factory, String string, String desc) { byte[] bytes = string.getBytes(UTF_8); TestSuite suite = suiteForBytes(name, factory, desc, bytes); CharSinkFactory charSinkFactory = SourceSinkFactories.asCharSinkFactory(factory); suite.addTest( CharSinkTester.suiteForString(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4K bytes - Viewed (0)