- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 129 for toByteArray (0.33 sec)
-
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
) val startNanos = System.nanoTime() val connection = server.url("/").toUrl().openConnection() connection.setDoOutput(true) connection.getOutputStream().write("ABCDEF".toByteArray(StandardCharsets.UTF_8)) val inputStream = connection.getInputStream() assertThat(inputStream.read()).isEqualTo(-1) val elapsedNanos = System.nanoTime() - startNanosRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmSsp.java
if (src[8] == 1) { final Type1Message type1 = new Type1Message(src); final Type2Message type2 = new Type2Message(type1, challenge, null); msg = Base64.encode(type2.toByteArray()); resp.setHeader("WWW-Authenticate", "NTLM " + msg); } else if (src[8] == 3) { final Type3Message type3 = new Type3Message(src);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
build-logic/jvm/src/main/kotlin/gradlebuild/startscript/tasks/GradleStartScriptGenerator.kt
line + getAgentOptions("%APP_HOME%").joinToString(separator = " ", prefix = " \"", postfix = "\"") } else -> line } }.toByteArray(StandardCharsets.UTF_8)) require(replacementsCount == 1) { "The script file produced by the default start script doesn't match expected layout" } } private
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Apr 08 01:46:59 UTC 2025 - 6.3K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java
ByteArrayOutputStream baos = new ByteArrayOutputStream(); properties.save(baos); properties = new MavenProperties(); properties.load(new ByteArrayInputStream(baos.toByteArray())); Object o22 = properties.get(KEY1); assertEquals(VALUE1, o22); for (Map.Entry<String, String> entry : properties.entrySet()) { entry.setValue(entry.getValue() + "x"); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Oct 16 06:12:36 UTC 2025 - 16.4K bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt
classesDir.resolve(outputPrefix).resolve(details.outputClassFilename).apply { parentFile.mkdirs() writeBytes(classWriter.toByteArray()) } } catch (exception: Exception) { throw ClassAnalysisException("Could not transform class from $file", exception) }Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Sat Mar 22 03:48:38 UTC 2025 - 7.3K bytes - Viewed (0) -
guava/src/com/google/common/io/Resources.java
* * @param url the URL to read from * @return a byte array containing all the bytes from the URL * @throws IOException if an I/O error occurs */ public static byte[] toByteArray(URL url) throws IOException { return asByteSource(url).read(); } /** * Reads all characters from a URL into a {@link String}, using the given character set. * * @param url the URL to read from
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java
try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); final Output output = new Output(baos)) { kryo.writeClassAndObject(output, obj); output.flush(); return baos.toByteArray(); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * Deserializes a byte array using Kryo deserialization. * <p>
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Wed Nov 19 07:09:17 UTC 2025 - 6.5K bytes - Viewed (3) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
@ExtendWith(MockitoExtension.class) class NtlmMessageTest { /** Lightweight concrete implementation used only for testing. */ private static class Dummy extends NtlmMessage { @Override public byte[] toByteArray() { return new byte[0]; } } private Dummy msg; @BeforeEach void setUp() { msg = new Dummy(); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
// Build a minimal SPNEGO NegTokenInit containing the provided mechanisms NegTokenInit tok = new NegTokenInit(mechs, 0, null, null); return tok.toByteArray(); } @Test @DisplayName("createContext: rejects NetBIOS/short host names") void createContext_rejectsShortNetbiosHost() { Kerb5Authenticator auth = new Kerb5Authenticator((Subject) null);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
assertThat(request.requestLine).isEqualTo("POST /foo HTTP/2") assertArrayEquals(postBytes, request.body?.toByteArray()) assertThat(request.headers["Content-Length"]).isNull() } @Test fun userSuppliedContentLengthHeader() { val postBytes = "FGHIJ".toByteArray() server.enqueue(MockResponse(body = "ABCDE")) val call = client.newCall( Request(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 67.4K bytes - Viewed (0)