- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for ByteArrayOutputStream (0.18 sec)
-
guava-tests/test/com/google/common/io/ByteSourceTester.java
} public void testCopyTo_outputStream() throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); source.copyTo(out); assertExpectedBytes(out.toByteArray()); } public void testCopyTo_byteSink() throws IOException { final ByteArrayOutputStream out = new ByteArrayOutputStream(); // HERESY! but it's ok just for this I guess source.copyTo(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.6K bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt
import java.io.ByteArrayOutputStream import java.io.File /** * `dir / "sub"` is the same as `dir.resolve("sub")`. * * @see [File.resolve] */ operator fun File.div(child: String): File = resolve(child) fun ExecOperations.execAndGetStdout(workingDir: File, ignoreExitValue: Boolean, vararg args: String): String { val out = ByteArrayOutputStream() exec {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Sep 24 21:39:46 UTC 2024 - 1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/WebApiResponse.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.api; import java.io.IOException; import java.io.PrintWriter; import org.apache.commons.io.output.ByteArrayOutputStream; import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponseWrapper; public class WebApiResponse extends HttpServletResponseWrapper {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
public void testOpenBufferedStream() throws IOException { InputStream in = source.openBufferedStream(); assertTrue(source.wasStreamOpened()); assertFalse(source.wasStreamClosed()); ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteStreams.copy(in, out); in.close(); out.close(); assertTrue(source.wasStreamClosed()); assertArrayEquals(bytes, out.toByteArray()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 15.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/Platform.java
final class Platform { /** Serializes and deserializes the specified object. */ @SuppressWarnings("unchecked") static <T> T reserialize(T object) { checkNotNull(object); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); try { ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(object); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Aug 23 12:13:11 UTC 2023 - 1.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java
import static org.junit.Assert.assertThrows; import java.io.ByteArrayOutputStream; /** * Unit tests for {@link CountingOutputStream}. * * @author Chris Nokleberg */ public class CountingOutputStreamTest extends IoTestCase { public void testCount() throws Exception { int written = 0; ByteArrayOutputStream out = new ByteArrayOutputStream(); CountingOutputStream counter = new CountingOutputStream(out);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
assertEquals(object.getClass(), copy.getClass()); } @J2ktIncompatible @GwtIncompatible // serialization private static Object reserialize(Object object) throws Exception { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); new ObjectOutputStream(bytes).writeObject(object); return new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())).readObject(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 5.2K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/SerializationTest.java
} // Serialize an inner child here so that the BaseObject.childrenTracking is non null Build build = model.getBuild(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); try (ObjectOutputStream oos = new ObjectOutputStream(baos)) { oos.writeObject(build); } Build build2;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java
if ("system.properties".equals(id)) { return asStream(id).contentTypeOctetStream().stream(out -> { try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) { ComponentUtil.getSystemProperties().store(baos, id); try (final InputStream in = new ByteArrayInputStream(baos.toByteArray())) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 12 01:54:15 UTC 2024 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/spnego/NegTokenInit.java
ASN1EncodableVector ev = new ASN1EncodableVector(); ev.add(SPNEGO_OID); ev.add(new DERTaggedObject(true, 0, new DERSequence(fields))); ByteArrayOutputStream collector = new ByteArrayOutputStream(); ASN1OutputStream der = ASN1OutputStream.create(collector, ASN1Encoding.DER);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Oct 01 12:01:17 UTC 2023 - 7.9K bytes - Viewed (0)