Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ByteArrayOutputStream (0.13 sec)

  1. 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)
  2. 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;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

                            createMetadataFromArtifact(artifact).getDelegate(), true)
                    .modelEncoding("UTF-16")
                    .build());
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            new MetadataStaxWriter().write(baos, source.getDelegate());
            Metadata source2 =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        }
    
        ImmutableMap<Integer, Integer> map = RegularImmutableMap.fromEntries(entries);
        Set<Integer> keySet = map.keySet();
        Collection<Integer> values = map.values();
    
        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        ObjectOutputStream oos = new ObjectOutputStream(bytes);
        oos.writeObject(map);
        oos.flush();
    
        int mapSize = bytes.size();
        oos.writeObject(keySet);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  5. 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);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            // given
            // - request with version and batch mode
            CliRequest cliRequest = new CliRequest(new String[] {"--version", "--batch-mode"}, null);
            ByteArrayOutputStream systemOut = new ByteArrayOutputStream();
            PrintStream oldOut = System.out;
            System.setOut(new PrintStream(systemOut));
    
            // when
            try {
                cli.cli(cliRequest);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteSink.java

       * delegate to {@link #openStream()} when the stream returned by that method does not benefit from
       * additional buffering (for example, a {@code ByteArrayOutputStream}). This method returns a new,
       * independent stream each time it is called.
       *
       * <p>The caller is responsible for ensuring that the returned stream is closed.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 28 16:55:09 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. compat/maven-model/src/test/java/org/apache/maven/model/merge/MavenMergerTest.java

            source.setLicenses(new ArrayList<License>());
            source.getLicenses().add(lic2);
    
            new MavenMerger().mergeModel(target, source, false, null);
    
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            ObjectOutputStream oos = new ObjectOutputStream(baos);
            oos.writeObject(target);
        }
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

      @J2ktIncompatible
      @GwtIncompatible // java serialization not supported in GWT.
      private static byte[] serializeWithBackReference(Object original, int handleOffset)
          throws IOException {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream(bos);
    
        out.writeObject(original);
    
        byte[] handle = toByteArray(baseWireHandle + handleOffset);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        ImmutableMap<Integer, Integer> map = RegularImmutableMap.create(entries.length / 2, entries);
        Set<Integer> keySet = map.keySet();
        Collection<Integer> values = map.values();
    
        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        ObjectOutputStream oos = new ObjectOutputStream(bytes);
        oos.writeObject(map);
        oos.flush();
    
        int mapSize = bytes.size();
        oos.writeObject(keySet);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
Back to top