Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 80 for ByteArrayOutputStream (0.61 sec)

  1. android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

        @Override
        public int bits() {
          return 32;
        }
    
        @Override
        public Hasher newHasher() {
          return new AbstractStreamingHasher(4, 4) {
            final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
            @Override
            protected HashCode makeHash() {
              return HashCode.fromBytes(out.toByteArray());
            }
    
            @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/CopyUtilTest.java

        static String srcString = "ABCDEFGHIJKLMN";
    
        static String urlString = "あいうえお";
    
        InputStream is = new ByteArrayInputStream(srcBytes);
    
        ByteArrayOutputStream os = new ByteArrayOutputStream();
    
        Reader reader = new StringReader(srcString);
    
        StringWriter writer = new StringWriter();
    
        StringBuilder builder = new StringBuilder();
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/SerializeUtil.java

         * @return オブジェクトのbyte配列
         */
        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 {
                    oos.close();
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInput;
    import java.io.DataInputStream;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * Test class for {@link LittleEndianDataOutputStream}.
     *
     * @author Keith Bottner
     */
    public class LittleEndianDataOutputStreamTest extends TestCase {
    
      private ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  5. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        private static ByteArrayOutputStream connectStream(InputStream forkedProcessOutput, CountDownLatch latch) {
            ByteArrayOutputStream os = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream(os, true);
            new Thread(() -> {
                try {
    Java
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Sep 27 07:41:29 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/spnego/NegTokenTarg.java

        public void setMechanism ( ASN1ObjectIdentifier mechanism ) {
            this.mechanism = mechanism;
        }
    
    
        @Override
        public byte[] toByteArray () {
            try {
                ByteArrayOutputStream collector = new ByteArrayOutputStream();
                ASN1OutputStream der = ASN1OutputStream.create(collector, ASN1Encoding.DER);
                ASN1EncodableVector fields = new ASN1EncodableVector();
                int res = getResult();
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Jan 04 04:18:31 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  7. android/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();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 09:26:07 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInput;
    import java.io.DataInputStream;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * Test class for {@link LittleEndianDataOutputStream}.
     *
     * @author Keith Bottner
     */
    public class LittleEndianDataOutputStreamTest extends TestCase {
    
      private ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  9. 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;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 3K bytes
    - Viewed (0)
  10. android/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());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
Back to top