- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 342 for getBytes (0.06 seconds)
-
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
// Write initial content try (OutputStream out = file.openOutputStream(false)) { out.write(initialContent.getBytes("UTF-8")); } // Overwrite with new content try (OutputStream out = file.openOutputStream(false)) { out.write(newContent.getBytes("UTF-8")); } // Verify new content try (InputStream in = file.getInputStream()) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
src/main/java/jcifs/config/BaseConfiguration.java
* * @throws CIFSException if there is an error during initialization */ protected void initDefaults() throws CIFSException { try { "".getBytes(SmbConstants.DEFAULT_OEM_ENCODING); } catch (final UnsupportedEncodingException uee) { throw new CIFSException(Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 36.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
ByteBuffer bb = ByteBuffer.wrap(dst).order(ByteOrder.LITTLE_ENDIAN); assertEquals(maxReferralLevel, bb.getShort()); // Verify path encoding (UTF-16LE) byte[] pathBytes = path.getBytes(StandardCharsets.UTF_16LE); byte[] encodedPath = new byte[pathBytes.length]; bb.get(encodedPath); assertArrayEquals(pathBytes, encodedPath); // Verify null terminator
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/PluginHelperTest.java
} catch (IOException e) { throw new IORuntimeException(e); } } else if (url.contains("plugin/repo2")) { try (InputStream is = ResourceUtil.getResourceAsStream(url)) { return new String(InputStreamUtil.getBytes(is), Constants.UTF_8);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 22.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/CopyUtilTest.java
} /** * @throws Exception */ @Test public void testFileToFile() throws Exception { int result = copy(inputFile, outputFile); assertThat(result, is(urlString.getBytes("UTF-8").length)); result = copy(outputFile, "UTF-8", writer); assertThat(writer.toString(), is(urlString)); } /** * @throws Exception */ @TestCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4.6K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/Hc5FormScheme.java
parseTokenPage(tokenPattern, responseParams, entity); } else { String content; try { content = new String(InputStreamUtil.getBytes(entity.getContent()), Constants.UTF_8_CHARSET); } catch (final IOException e) { content = e.getMessage(); }
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Jan 04 13:09:59 GMT 2026 - 15.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java
/** * Constructs a pipe wait request without timeout. * * @param name the pipe name to wait for */ public FsctlPipeWaitRequest(final String name) { this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE); this.timeoutSpecified = false; this.timeout = 0; } /** * Constructs a pipe wait request with timeout. * * @param name the pipe name to wait forCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestCharSource.java
private final TestByteSource byteSource; public TestCharSource(String content, TestOption... options) { this.byteSource = new TestByteSource(content.getBytes(UTF_8), options); } @Override public boolean wasStreamOpened() { return byteSource.wasStreamOpened(); } @Override public boolean wasStreamClosed() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/InputStreamUtilTest.java
final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class"); try { assertNotNull("1", InputStreamUtil.getBytes(is)); } finally { is.close(); } }
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.2K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
assertEquals(TEST_DOMAIN.getBytes(Type2Message.UNI_ENCODING).length, Type2Message.readUShort(targetInfo, 2)); // Length assertEquals(TEST_DOMAIN, new String(Arrays.copyOfRange(targetInfo, 4, 4 + TEST_DOMAIN.getBytes(Type2Message.UNI_ENCODING).length), Type2Message.UNI_ENCODING));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 38.9K bytes - Click Count (0)