Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 298 for InputStream (0.07 seconds)

  1. guava-tests/test/com/google/common/io/ByteSourceTest.java

        // Open a stream to the slice.
        InputStream in = slice.openStream();
    
        // Append 10 more bytes to the source.
        source.append(newPreFilledByteArray(5, 10));
    
        // The stream reports no bytes... importantly, it doesn't read the byte at index 5 when it
        // should be reading the byte at index 10.
        // We could use a custom InputStream instead to make the read start at index 10, but since this
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/io/CopyUtil.java

        /**
         * Wraps the input stream with a {@link BufferedInputStream} if necessary.
         *
         * @param is the input stream
         * @return the wrapped input stream
         */
        protected static InputStream wrap(final InputStream is) {
            if (is instanceof BufferedInputStream) {
                return is;
            }
            if (is instanceof ByteArrayInputStream) {
                return is;
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 45.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/xml/DomUtil.java

         */
        protected DomUtil() {
        }
    
        /**
         * Retrieves the XML content as an {@link InputStream} using the platform's default encoding.
         *
         * @param contents
         *            The content. Must not be {@literal null}.
         * @return {@link InputStream}
         */
        public static InputStream getContentsAsStream(final String contents) {
            assertArgumentNotNull("contents", contents);
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java

                        e.getLocation().getColumnNumber(),
                        e);
            }
        }
    
        @Override
        public Metadata read(InputStream input, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(input, "input cannot be null");
    
            try (InputStream in = input) {
                return new Metadata(new MetadataStaxReader().read(in, isStrict(options)));
            } catch (XMLStreamException e) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTester.java

      }
    
      public void testOpenStream() throws IOException {
        InputStream in = source.openStream();
        try {
          byte[] readBytes = ByteStreams.toByteArray(in);
          assertExpectedBytes(readBytes);
        } finally {
          in.close();
        }
      }
    
      public void testOpenBufferedStream() throws IOException {
        InputStream in = source.openBufferedStream();
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.kuromojiFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.protwordsFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  8. compat/maven-model/src/test/java/org/apache/maven/model/SerializationTest.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model;
    
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    
    import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
    import org.junit.jupiter.api.Test;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  9. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/BuildPluginIT.java

                assertNotNull("Jar does not have META-INF/LICENSE.txt", licenseEntry);
                assertNotNull("Jar does not have META-INF/NOTICE.txt", noticeEntry);
                try (InputStream license = zipFile.getInputStream(licenseEntry); InputStream notice = zipFile.getInputStream(noticeEntry)) {
                    assertEquals("this is a test license file", IOUtils.toString(license, StandardCharsets.UTF_8.name()));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.7K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

            public String getRequestMethod() {
                return "HEAD";
            }
    
            @Override
            public InputStream getInputStream() {
                throw new AssertionError("HEAD request should not read input stream");
            }
    
            @Override
            public InputStream getErrorStream() {
                throw new AssertionError("HEAD request should not read error stream");
            }
    
            @Override
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 44.1K bytes
    - Click Count (0)
Back to Top