- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 342 for getBytes (0.05 seconds)
-
guava-tests/test/com/google/common/io/ResourcesTest.java
} public void testToByteArray() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt"); assertThat(Resources.toByteArray(resource)).isEqualTo(I18N.getBytes(UTF_8)); } public void testReadLines() throws IOException { // TODO(chrisn): Check in a better resource URL resource = getClass().getResource("testdata/i18n.txt");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java
// no password in tree connect dst[dstIndex++] = (byte) 0x00; } dstIndex += writeString(this.path, dst, dstIndex); try { System.arraycopy(this.service.getBytes("ASCII"), 0, dst, dstIndex, this.service.length()); } catch (final UnsupportedEncodingException uee) { return 0; } dstIndex += this.service.length();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ResourcesTest.java
} public void testToByteArray() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt"); assertThat(Resources.toByteArray(resource)).isEqualTo(I18N.getBytes(UTF_8)); } public void testReadLines() throws IOException { // TODO(chrisn): Check in a better resource URL resource = getClass().getResource("testdata/i18n.txt");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequest.java
if (this.fileName == null) { SMBUtil.writeInt2(0, dst, fnOffsetOffset); SMBUtil.writeInt2(0, dst, fnLengthOffset); } else { final byte[] fnBytes = this.fileName.getBytes(StandardCharsets.UTF_16LE); SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, fnOffsetOffset); SMBUtil.writeInt2(fnBytes.length, dst, fnLengthOffset);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java
buf.enc_ndr_long(0); // NULL pointer } else { buf.enc_ndr_long(1); // Non-NULL pointer // Convert to UTF-16LE (wide string) byte[] wideBytes = str.getBytes(StandardCharsets.UTF_16LE); int charCount = str.length(); // NDR string structure: MaximumCount, Offset, ActualCount, then data
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 8.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java
*/ protected static String encodeId(final String objectName) { if (objectName == null) { return StringUtil.EMPTY; } return new String(Base64.getUrlEncoder().encode(objectName.getBytes(Constants.UTF_8_CHARSET)), Constants.UTF_8_CHARSET); } /** * Decodes a base64 encoded ID back to the original object name. * * @param id the encoded ID to decodeCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 13 02:21:17 GMT 2025 - 22.1K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java
try (InputStream contentStream = new BufferedInputStream(new FileInputStream(file))) { responseData.setResponseBody(InputStreamUtil.getBytes(contentStream)); } catch (final Exception e) { logger.warn("Failed to read file content: file={}, size={}", file.getAbsolutePath(), file.length(), e);
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Nov 23 12:19:14 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java
final String converted = URLEncoder.encode(target, Constants.UTF_8); if (target.equals(converted)) { encodedBuf.append(Base64.getUrlEncoder().encodeToString(target.getBytes(Constants.CHARSET_UTF_8))); } else { encodedBuf.append(converted); } } catch (final UnsupportedEncodingException e) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 15.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/PluginHelper.java
try { final String pluginMetaContent = getRepositoryContent(pluginUrl + "maven-metadata.xml"); try (final InputStream is = new ByteArrayInputStream(pluginMetaContent.getBytes(Constants.UTF_8_CHARSET))) { final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setFeature(Constants.FEATURE_SECURE_PROCESSING, true);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Mar 04 15:19:41 GMT 2026 - 25.1K bytes - Click Count (0)