- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 121 for toByteArray (0.07 sec)
-
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: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
private TestNtlmMessage message; // Concrete implementation for testing abstract NtlmMessage private static class TestNtlmMessage extends NtlmMessage { @Override public byte[] toByteArray() throws IOException { // Simple implementation for testing purposes return new byte[0]; } } @BeforeEach void setUp() { message = new TestNtlmMessage();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N); } 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");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
oos.writeObject(exception); oos.close(); // And deserialize java.io.ByteArrayInputStream bais = new java.io.ByteArrayInputStream(baos.toByteArray()); java.io.ObjectInputStream ois = new java.io.ObjectInputStream(bais); SmbOperationException deserialized = (SmbOperationException) ois.readObject(); ois.close(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
} @Override public byte[] read() throws IOException { Closer closer = Closer.create(); try { FileInputStream in = closer.register(openStream()); return ByteStreams.toByteArray(in, in.getChannel().size()); } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } @Override public String toString() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
assertArrayEquals(postBytes, request.body?.toByteArray()) assertThat(request.headers["Content-Length"]).isNull() } @ParameterizedTest @ArgumentsSource(ProtocolParamProvider::class) fun userSuppliedContentLengthHeader(protocol: Protocol) { setUp(protocol) val postBytes = "FGHIJ".toByteArray() server.enqueue(MockResponse(body = "ABCDE")) val call =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
// illegal value is 255.255.255.255. if (coercedHash == 0xffffffff) { coercedHash = 0xfffffffe; } return getInet4Address(Ints.toByteArray(coercedHash)); } /** * Returns an integer representing an IPv4 address regardless of whether the supplied argument is * an IPv4 address or not. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
guava/src/com/google/common/io/Files.java
} @Override public byte[] read() throws IOException { Closer closer = Closer.create(); try { FileInputStream in = closer.register(openStream()); return ByteStreams.toByteArray(in, in.getChannel().size()); } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } @Override public String toString() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
} int attempt = 0; while (attempt < MAX_REDIRECTS) { this.connection.setRequestProperty(this.authProperty, this.authMethod + ' ' + Base64.toBase64String(type1.toByteArray())); this.connection.connect(); // send type 1 response = parseResponseCode(); if (response != HTTP_UNAUTHORIZED && response != HTTP_PROXY_AUTH) { return;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 25.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SearchHelper.java
try (final GZIPOutputStream gzipOut = new GZIPOutputStream(bos)) { gzipOut.write(data); } return bos.toByteArray(); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * Retrieves and deserializes search parameters from browser cookies. *
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 35.8K bytes - Viewed (0)