Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for SetBytes (0.23 sec)

  1. maven-core/src/test/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmServiceTest.java

        }
    
        @Test
        void calculateByte() throws IOException {
            Map<ChecksumAlgorithmService.ChecksumAlgorithm, String> checksums = service.calculate(
                    "test".getBytes(StandardCharsets.UTF_8), service.select(Arrays.asList("SHA-1", "MD5")));
            assertNotNull(checksums);
            assertEquals(2, checksums.size());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Dec 21 08:05:10 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

                    throw new RuntimeException(e);
                }
                return false;
            }
        }
    
        @Override
        public Optional<byte[]> getBytes(URI relativeSource) {
            try {
                Path tempPath = null;
                try {
                    tempPath = Files.createTempFile("transport-get", "tmp");
                    if (get(relativeSource, tempPath)) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Apr 01 15:17:46 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java

            if (content != null) {
                resource.setContentLength(content.length());
                resource.setLastModified(System.currentTimeMillis());
    
                inputData.setInputStream(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)));
            } else {
                throw new ResourceDoesNotExistException("No content provided for " + resource.getName());
            }
        }
    
        @Override
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 3K bytes
    - Viewed (0)
  4. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

            }
    
            return hashString.toString().hashCode();
    
            // BASE64Encoder b64 = new BASE64Encoder();
            // return b64.encode( hashString.toString().getBytes() ).hashCode();
        }
    
        // ---------------------------------------------------------------------
        // ---------------------------------------------------------------------
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/Transport.java

         *
         * @return the byte array if operation succeeded, {@code null} if source does not exist.
         * @throws RuntimeException If failed (and not due source not exists).
         */
        @Nonnull
        Optional<byte[]> getBytes(@Nonnull URI relativeSource);
    
        /**
         * GETs the source URI content as string. The source MUST BE relative from the {@link RemoteRepository#getUrl()}
         * root.
         *
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  6. maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

                    "<packaging>pom</packaging>",
                    "<packaging>pom</packaging><properties><addedProperty>addedValue</addedProperty></properties>");
            Files.write(parent.toPath(), parentContent.getBytes(StandardCharsets.UTF_8));
            // re-build pom with modified parent
            ProjectBuildingResult result = projectBuilder.build(child, configuration);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Nov 28 17:17:10 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

                    throw new RuntimeException(e);
                }
                return false;
            }
        }
    
        @Override
        public Optional<byte[]> getBytes(URI relativeSource) {
            try {
                Path tempPath = null;
                try {
                    tempPath = Files.createTempFile("transport-get", "tmp");
                    if (get(relativeSource, tempPath)) {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  8. maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java

            this.hashCode = this.content.hashCode();
        }
    
        @Override
        public InputStream getInputStream() throws IOException {
            return new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8));
        }
    
        @Override
        public String getLocation() {
            return location;
        }
    
        /**
         * Gets the content of this source.
         *
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/project/ExtensionDescriptorBuilderTest.java

        }
    
        @AfterEach
        void tearDown() throws Exception {
            builder = null;
        }
    
        private InputStream toStream(String xml) {
            return new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8));
        }
    
        @Test
        void testEmptyDescriptor() throws Exception {
            String xml = "<extension></extension>";
    
            ExtensionDescriptor ed = builder.build(toStream(xml));
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 3K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                    return null;
                }
    
                @Override
                public InputStream openStream() throws IOException {
                    return new ByteArrayInputStream(buffer.toString().getBytes(StandardCharsets.UTF_8));
                }
    
                @Override
                public String getLocation() {
                    return artifact.getId();
                }
    
                @Override
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 55.2K bytes
    - Viewed (0)
Back to top