- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 106 for ByteArrayOutputStream (0.23 seconds)
-
src/main/java/org/codelibs/core/io/SerializeUtil.java
* @return the byte array of the object */ public static byte[] fromObjectToBinary(final Object obj) { assertArgumentNotNull("obj", obj); try { final ByteArrayOutputStream baos = new ByteArrayOutputStream(BYTE_ARRAY_SIZE); final ObjectOutputStream oos = new ObjectOutputStream(baos); try { oos.writeObject(obj); } finally {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 8.9K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt
*/ package okhttp3.containers import assertk.assertThat import assertk.assertions.contains import assertk.assertions.isEmpty import assertk.assertions.isNotEmpty import java.io.ByteArrayOutputStream import java.io.PrintStream import java.util.concurrent.ExecutorService import java.util.concurrent.Executors import okhttp3.Dispatcher import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClient
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.7K bytes - Click Count (1) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java
* under the License. */ package org.apache.maven.repository.legacy; import javax.inject.Named; import javax.inject.Singleton; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import org.apache.maven.wagon.ConnectionException; import org.apache.maven.wagon.InputData;
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3K bytes - Click Count (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java
assertEquals(VALUE1, rawValue.get(1)); } @Test public void testEntrySetValue() throws Exception { properties.put(KEY1, VALUE1); ByteArrayOutputStream baos = new ByteArrayOutputStream(); properties.save(baos); properties = new MavenProperties(); properties.load(new ByteArrayInputStream(baos.toByteArray())); Object o22 = properties.get(KEY1);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Mar 09 14:29:03 GMT 2026 - 16.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java
*/ protected byte[] serializeWithKryo(final Object obj) { final Kryo kryo = kryoThreadLocal.get(); try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); final Output output = new Output(baos)) { kryo.writeClassAndObject(output, obj); output.flush(); return baos.toByteArray();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Jan 10 01:54:09 GMT 2026 - 10.5K bytes - Click Count (3) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
long predictedSize = bf.bitSize() / 8 + 6; assertThat(bf.serializedSize()).isEqualTo(predictedSize); // Serialize and measure actual size ByteArrayOutputStream out = new ByteArrayOutputStream(); bf.writeTo(out); int actualSize = out.size(); assertThat(bf.serializedSize()).isEqualTo(actualSize); assertWithMessage(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 23K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
return localInterfaces.size() > 0 && remoteInterfaces.size() > 0; } private byte[] calculateBindingInfo(ChannelInfo channel) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { // Combine session key with channel-specific data byte[] sessionKey = getSessionKey(); if (sessionKey != null) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 20K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/entity/PingResponse.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.entity; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Locale; import java.util.Set; import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.Constants;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 6.4K bytes - Click Count (2) -
src/main/java/org/codelibs/fess/helper/SearchHelper.java
* @return GZIP-compressed data * @throws IORuntimeException if compression fails */ protected byte[] gzipCompress(final byte[] data) { try (final ByteArrayOutputStream bos = new ByteArrayOutputStream()) { try (final GZIPOutputStream gzipOut = new GZIPOutputStream(bos)) { gzipOut.write(data); } return bos.toByteArray();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 05:56:45 GMT 2025 - 36.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
} } @Override public byte[] getSinkContents() throws IOException { File file = getFile(); InputStream in = new FileInputStream(file); ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] buffer = new byte[100]; int read; while ((read = in.read(buffer)) != -1) { out.write(buffer, 0, read); } return out.toByteArray(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 17:42:14 GMT 2025 - 12.7K bytes - Click Count (0)