- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 237 for getBytes (0.27 sec)
-
src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java
final byte[] b = { 0x00, 0x01 }; assertThat(BinaryConversionUtil.toBinary(b), is(b)); assertThat(BinaryConversionUtil.toBinary("hoge"), is("hoge".getBytes())); } /** * Test method for * {@link org.codelibs.core.convert.BinaryConversionUtil#toBinary(java.lang.Object)} * . */ @Test public void testToBinaryException() {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java
} return hashString.toString().hashCode(); // BASE64Encoder b64 = new BASE64Encoder(); // return b64.encode( hashString.toString().getBytes() ).hashCode(); } // --------------------------------------------------------------------- // ---------------------------------------------------------------------
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/BinaryConversionUtil.java
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.3K bytes - Viewed (0) -
guava/src/com/google/common/base/Utf8.java
@GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public final class Utf8 { /** * Returns the number of bytes in the UTF-8-encoded form of {@code sequence}. For a string, this * method is equivalent to {@code string.getBytes(UTF_8).length}, but is more efficient in both * time and space. * * @throws IllegalArgumentException if {@code sequence} contains ill-formed UTF-16 (unpaired * surrogates) */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
File asciiFile = getTestFile("ascii.txt"); File i18nFile = getTestFile("i18n.txt"); assertTrue(Arrays.equals(ASCII.getBytes(US_ASCII), Files.toByteArray(asciiFile))); assertTrue(Arrays.equals(I18N.getBytes(UTF_8), Files.toByteArray(i18nFile))); assertTrue(Arrays.equals(I18N.getBytes(UTF_8), Files.asByteSource(i18nFile).read())); } /** A {@link File} that provides a specialized value for {@link File#length()}. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 22.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java
assertEquals("text/plain", responseData.getMimeType()); assertTrue(responseData.getUrl().endsWith("test/text1.txt")); final String content = new String(InputStreamUtil.getBytes(responseData.getResponseBody()), "UTF-8"); assertEquals("test1", content.trim()); } public void test_doGet_file_with_space() throws Exception {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java
final Map<String, Object> map = new HashMap<>(); final String name = filePath.getFileName().toString(); map.put("id", Base64.getUrlEncoder().encodeToString(name.getBytes(StandardCharsets.UTF_8))); map.put("name", name); try { map.put("lastModified", new Date(Files.getLastModifiedTime(filePath).toMillis()));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/DictionaryCreator.java
} return newDictionaryFile(encodePath(path), path, timestamp); } protected String encodePath(final String path) { return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8)); } protected boolean isTarget(final String path) { return pattern.matcher(path).find(); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java
FileUtil.write( file1.getAbsolutePath(), "token1,seg1,reading1,pos1\ntoken2,seg2,reading2,pos2\ntoken3,seg3,reading3,pos3" .getBytes(Constants.UTF_8)); } @Override protected void tearDown() throws Exception { file1.delete(); } */ @Override public void setUp() throws Exception {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type1Message.java
flags |= NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED; domain = suppliedDomainString.toUpperCase().getBytes(getOEMEncoding()); size += domain.length; } else { flags &= ( NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED ^ 0xffffffff ); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Sep 02 12:55:08 UTC 2018 - 7.8K bytes - Viewed (0)