Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 203 for ByteArrayInputStream (0.47 sec)

  1. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/FilteringClassLoaderSpecSerializerTest.groovy

            when:
            serializer.write(encoder, spec)
            encoder.flush()
    
            and:
            def decoder = new KryoBackedDecoder(new ByteArrayInputStream(outputStream.toByteArray()))
            def decodedSpec = serializer.read(decoder)
    
            then:
            decodedSpec == spec
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/HierarchicalClassLoaderStructureSerializerTest.groovy

            when:
            serializer.write(encoder, classLoaderStructure)
            encoder.flush()
    
            and:
            def decoder = new KryoBackedDecoder(new ByteArrayInputStream(outputStream.toByteArray()))
            def decodedClassloaderStructure = serializer.read(decoder)
    
            then:
            decodedClassloaderStructure == classLoaderStructure
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/DependencyInjectingServiceLoaderTest.groovy

            URLConnection connection = Mock()
            URL url = new URL("custom", "host", 12, "file", handler)
            _ * handler.openConnection(url) >> connection
            _ * connection.getInputStream() >> new ByteArrayInputStream(contents)
            url
        }
    
        interface ServiceType {
            ServiceDependency getDependency()
        }
    
        interface ServiceDependency {
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 28 20:18:10 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/testFixtures/groovy/org/gradle/internal/serialize/SerializerSpec.groovy

            return fromBytes(bytes, serializer)
        }
    
        <T> T fromBytes(byte[] bytes, Serializer<T> serializer) {
            return serializer.read(getDecoder().newInstance(new ByteArrayInputStream(bytes)))
        }
    
        <T> byte[] toBytes(T value, Serializer<T> serializer) {
            def bytes = new ByteArrayOutputStream()
            def encoder = getEncoder().newInstance(bytes)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/HierarchicalNameSerializerTest.groovy

                names.each {
                    serializer.write(encoder, it)
                }
            }
            def bytes = out.toByteArray()
            def decoder = new KryoBackedDecoder(new ByteArrayInputStream(bytes))
            def result = []
            names.each {
                result << deserializer.read(decoder)
            }
    
            then:
            result == names
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/PluginHelper.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.helper;
    
    import static org.codelibs.core.stream.StreamUtil.split;
    
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.Proxy;
    import java.nio.file.Files;
    import java.nio.file.Path;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/xml/DomUtil.java

            assertArgumentNotNull("contents", contents);
    
            if (encoding == null) {
                return new ByteArrayInputStream(contents.getBytes());
            }
            try {
                return new ByteArrayInputStream(contents.getBytes(encoding));
            } catch (final UnsupportedEncodingException ex) {
                throw new IORuntimeException(ex);
            }
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/kerberos/KerberosToken.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.pac.kerberos;
    
    
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    
    import javax.security.auth.kerberos.KerberosKey;
    
    import org.bouncycastle.asn1.*;
    
    import jcifs.pac.ASN1Util;
    import jcifs.pac.PACDecodingException;
    
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/initialization/GradleApiSpecAggregatorTest.groovy

            URLConnection connection = Mock()
            URL url = new URL("custom", "host", 12, "file", handler)
            _ * handler.openConnection(url) >> connection
            _ * connection.getInputStream() >> new ByteArrayInputStream(contents)
            url
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 26 05:36:10 UTC 2018
    - 3K bytes
    - Viewed (0)
  10. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingInputStreamHasherTest.groovy

        }
    
        static InputStream inputStream(String content) {
            return inputStream(content.bytes)
        }
    
        static InputStream inputStream(byte[] bytes) {
            return new ByteArrayInputStream(bytes)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top