Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 16 of 16 for newOutputStream (0.31 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                    }
                }
            }
    
            if (changed) {
                getLogger().debug("Repairing metadata in " + metadataFile);
    
                try (OutputStream out = Files.newOutputStream(metadataFile.toPath())) {
                    new MetadataStaxWriter().write(out, metadata.getDelegate());
                } catch (IOException | XMLStreamException e) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if sink.newOutputStream() throws).
          assertTrue(
              "stream not closed when copying to sink with option: " + option,
              !okSource.wasStreamOpened() || okSource.wasStreamClosed());
        }
      }
    
    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)
  3. docs/smb3-features/02-persistent-handles-design.md

        private void persistHandle(HandleInfo info) {
            Path handleFile = stateDirectory.resolve(info.createGuid.toString() + ".handle");
            try (ObjectOutputStream oos = new ObjectOutputStream(
                    Files.newOutputStream(handleFile))) {
                oos.writeObject(info);
            } catch (IOException e) {
                log.error("Failed to persist handle: " + info.path, e);
            }
        }
        
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 31.6K bytes
    - Click Count (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

        }
    
        public void save() throws IOException {
            save(this.location);
        }
    
        public void save(Path location) throws IOException {
            try (OutputStream os = Files.newOutputStream(location)) {
                save(os);
            }
        }
    
        public void save(OutputStream os) throws IOException {
            save(new OutputStreamWriter(os, DEFAULT_ENCODING));
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 38.4K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java

        }
    
        public void save() throws IOException {
            save(this.location);
        }
    
        public void save(Path location) throws IOException {
            try (OutputStream os = Files.newOutputStream(location)) {
                save(os);
            }
        }
    
        public void save(OutputStream os) throws IOException {
            save(new OutputStreamWriter(os, DEFAULT_ENCODING));
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 09:03:48 GMT 2025
    - 38.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/io/MoreFiles.java

          // TODO(cgdecker): validate the provided options... for example, just READ seems wrong
        }
    
        @Override
        public OutputStream openStream() throws IOException {
          return Files.newOutputStream(path, options);
        }
    
        @Override
        public String toString() {
          return "MoreFiles.asByteSink(" + path + ", " + Arrays.toString(options) + ")";
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 34.6K bytes
    - Click Count (0)
Back to Top