- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 69 for ByteArrayOutputStream (0.1 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) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java
return 0; } @Override protected int writeBytesWireFormat ( byte[] dst, int dstIndex ) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); for ( String dialect : this.dialects ) { bos.write(0x02); try { bos.write(Strings.getASCIIBytes(dialect)); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 3.3K 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) -
guava-tests/test/com/google/common/io/TestByteSink.java
import com.google.common.collect.ImmutableSet; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; /** * A byte sink for testing that has configurable behavior. * * @author Colin Decker */ public class TestByteSink extends ByteSink implements TestStreamSupplier { private final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); private final ImmutableSet<TestOption> options;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Sep 15 13:47:32 UTC 2016 - 1.8K 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)