- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 35 for openStream (0.53 sec)
-
src/main/java/org/codelibs/core/io/CopyUtil.java
*/ public static int copy(final URL in, final OutputStream out) { assertArgumentNotNull("in", in); assertArgumentNotNull("out", out); final InputStream is = URLUtil.openStream(in); try { if (out instanceof FileOutputStream) { return copyInternal(wrap(is), (FileOutputStream) out); } return copyInternal(wrap(is), wrap(out));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 52.4K bytes - Viewed (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
memory = new MemoryOutput(); out = memory; if (resetOnFinalize) { source = new ByteSource() { @Override public InputStream openStream() throws IOException { return openInputStream(); } @SuppressWarnings("removal") // b/260137033 @Override protected void finalize() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
// Slice it starting at offset 10. ByteSource slice = source.slice(10, 5); // 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
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.9K bytes - Viewed (0) -
maven-builder-support/src/main/java/org/apache/maven/building/UrlSource.java
this.url = Objects.requireNonNull(url, "url cannot be null"); this.hashCode = Objects.hashCode(url); } @Override public InputStream getInputStream() throws IOException { return url.openStream(); } @Override public String getLocation() { return url.toString(); } /** * Gets the URL of this source. *
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Feb 26 17:04:44 GMT 2024 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
// read the first 8 chars manually, since there's no equivalent to ByteSource.slice // TODO(cgdecker): Add CharSource.slice? StringBuilder builder = new StringBuilder(); Reader reader = concatenated.openStream(); // no need to worry about closing for (int i = 0; i < 8; i++) { builder.append((char) reader.read()); } assertEquals(expected, builder.toString()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 12K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java
* * @return a byte stream to the source contents, never {@code null} * @throws IOException in case of IO issue */ @Nonnull InputStream openStream() throws IOException; /** * Provides a user-friendly hint about the location of the source. * This could be a local file path, a URI or just an empty string.
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 3.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
// read the first 8 chars manually, since there's no equivalent to ByteSource.slice // TODO(cgdecker): Add CharSource.slice? StringBuilder builder = new StringBuilder(); Reader reader = concatenated.openStream(); // no need to worry about closing for (int i = 0; i < 8; i++) { builder.append((char) reader.read()); } assertEquals(expected, builder.toString()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 13K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsBuilder.java
MappedToolchainsSource(Source source) { this.source = source; } @Override public InputStream getInputStream() throws IOException { return source.openStream(); } @Override public String getLocation() { return source.getLocation(); } }
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Mon Sep 11 16:14:36 GMT 2023 - 5.3K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java
SourceWrapper(Source source) { this.source = source; } @Override public InputStream getInputStream() throws IOException { return source.openStream(); } @Override public String getLocation() { return source.getLocation(); } @Override
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 8.3K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java
MappedSettingsSource(Source source) { this.source = source; } @Override public InputStream getInputStream() throws IOException { return source.openStream(); } @Override public String getLocation() { return source.getLocation(); } }
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Tue Dec 05 08:11:33 GMT 2023 - 5.6K bytes - Viewed (0)