Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 463 for GetBytes (0.42 sec)

  1. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/MavenJarCreator.groovy

    import java.util.zip.ZipOutputStream
    
    class MavenJarCreator {
        int minimumSizeKB = 0
        int maximumSizeKB = 0
        Random random = new Random(1L)
        byte[] charsToUse = "abcdefghijklmnopqrstuvwxyz0123456789".getBytes()
    
        void createJar(MavenModule mavenModule, File artifactFile) {
            try {
                artifactFile.withOutputStream { stream ->
                    ZipOutputStream out = new ZipOutputStream(stream)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 05 09:51:22 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyJavaInterOpIntegrationTest.groovy

                        return outFile;
                    }
    
                    @TaskAction
                    public void run() throws IOException {
                        Files.write(outFile.get().getAsFile().toPath(), "content".getBytes());
                    }
                }
            """
        }
    
        @Override
        void taskWithNestedBeanDefinition() {
            pluginDir.file("src/main/java/ProducerTask.java") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/TestRetryPluginSmokeTest.groovy

            try {
                Path marker = Paths.get("marker.file");
                if (!Files.exists(marker)) {
                    Files.write(marker, "mark".getBytes());
                    throw new RuntimeException("fail me!");
                }
                Files.write(marker, "again".getBytes());
            } catch (java.io.IOException e) {
                throw new java.io.UncheckedIOException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java

        public FsctlPipeWaitRequest ( String name ) {
            this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE);
            this.timeoutSpecified = false;
            this.timeout = 0;
        }
    
    
        /**
         * @param name
         * @param timeout
         * 
         */
        public FsctlPipeWaitRequest ( String name, long timeout ) {
            this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE);
            this.timeoutSpecified = true;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/wrapper-shared/src/test/groovy/org/gradle/wrapper/InstallTest.groovy

                    zos.write("evil".getBytes('utf-8'))
                    zos.closeEntry()
                }
            }
        }
    
        static byte[] getEvilTarData() {
            def outputStream = new ByteArrayOutputStream()
                new TarOutputStream(outputStream).withCloseable {  zos ->
                    def bytes = "evil".getBytes('utf-8')
                    def entry = new TarEntry('../../tmp/evil.sh')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  6. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParserTest.groovy

        }
    
        def "uses charset specified in content type"() {
            def html = """
            <a href="\u00c1\u00d2">directory1</a>
            """
            def encodedHtml = html.getBytes('ISO-8859-1')
            assert !Arrays.equals(encodedHtml, html.getBytes("utf-8"))
    
            expect:
            def uris = parser.parse(baseUrl, new ByteArrayInputStream(encodedHtml), 'text/html;charset=ISO-8859-1')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java

                    + "</doc>";
    
            final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl();
            accessResultDataImpl.setData(value.getBytes(Constants.UTF_8));
            accessResultDataImpl.setEncoding(Constants.UTF_8);
            accessResultDataImpl.setTransformerName("xpathTransformer");
    
            final Object obj = xpathTransformer.getData(accessResultDataImpl);
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/PACTest.java

            verifyAESHMAC(3, expect, key, data.getBytes(StandardCharsets.US_ASCII));
        }
    
    
        @Test
        public void testAES256Checksum () throws GeneralSecurityException {
            String data = "fourteen";
            String key = "B1AE4CD8462AFF1677053CC9279AAC30B796FB81CE21474DD3DDBCFEA4EC76D7";
            String expect = "E08739E3279E2903EC8E3836";
            verifyAESHMAC(4, expect, key, data.getBytes(StandardCharsets.US_ASCII));
        }
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Oct 01 12:01:17 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/GeneratedSingletonFileTreeTest.java

                @Override
                public void execute(OutputStream outputStream) {
                    try {
                        outputStream.write(currentContentReference.get().getBytes());
                    } catch (IOException e) {
                        throw new RuntimeException(e);
                    }
                }
            });
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/crypto/CachedCipher.java

                offerEncryptoCipher(cipher);
            }
            return encrypted;
        }
    
        public String encryptoText(final String text) {
            try {
                return Base64Util.encode(encrypto(text.getBytes(charsetName)));
            } catch (final UnsupportedEncodingException e) {
                throw new UnsupportedEncodingRuntimeException(e);
            }
        }
    
        public byte[] decrypto(final byte[] data) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top