- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 596 for renamer (0.11 sec)
-
guava-tests/test/com/google/common/io/CharSourceTest.java
BufferedReader reader = source.openBufferedStream(); assertTrue(source.wasStreamOpened()); assertFalse(source.wasStreamClosed()); StringWriter writer = new StringWriter(); char[] buf = new char[64]; int read; while ((read = reader.read(buf)) != -1) { writer.write(buf, 0, read); } reader.close(); writer.close();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPluginXmlFactory.java
Path path = request.getPath(); URL url = request.getURL(); Reader reader = request.getReader(); InputStream inputStream = request.getInputStream(); if (path == null && url == null && reader == null && inputStream == null) { throw new IllegalArgumentException("path, url, reader or inputStream must be non null"); } try {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/PropertiesUtilTest.java
/** * Test method for * {@link org.codelibs.core.io.PropertiesUtil#load(java.util.Properties, java.io.Reader)} * . */ @Test public void testLoadPropertiesReaderReaderNull() { exception.expect(NullArgumentException.class); exception.expectMessage(is("[ECL0008]argument[reader] is null.")); final InputStreamReader inputStreamReader = null;
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 9.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MultipartReaderTest.kt
body.writeTo(bodyContent) val reader = MultipartReader(bodyContent, "boundary") val quickPart = reader.nextPart()!! assertThat(quickPart.headers).isEqualTo( headersOf( "Content-Type", "text/plain; charset=utf-8", ), ) assertThat(quickPart.body.readUtf8()).isEqualTo("Quick") val brownPart = reader.nextPart()!! assertThat(brownPart.headers).isEqualTo(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionDataRepository.java
LOGGER.warn("The {} file does not exist. The --resume / -r feature will not work.", path); return properties; } try (Reader reader = Files.newBufferedReader(path)) { properties.load(reader); } catch (IOException e) { LOGGER.warn("Unable to read {}. The --resume / -r feature will not work.", path); } return properties; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.9K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java
// ---------------------------------------------------------------------------- // I'm fully aware that the file could just be moved using File.rename but // there are bugs in various JVM that have problems doing this across // different filesystem. So we'll incur the small hit to actually copy // here and be safe. jvz.
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/LineBufferTest.java
} // Returns a Readable that is *not* a Reader. private static Readable getChunkedReadable(String input, int chunk) { final Reader reader = getChunkedReader(input, chunk); return new Readable() { @Override public int read(CharBuffer cbuf) throws IOException { return reader.read(cbuf); } }; } private static Reader getChunkedReader(String input, final int chunk) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LineBufferTest.java
} // Returns a Readable that is *not* a Reader. private static Readable getChunkedReadable(String input, int chunk) { final Reader reader = getChunkedReader(input, chunk); return new Readable() { @Override public int read(CharBuffer cbuf) throws IOException { return reader.read(cbuf); } }; } private static Reader getChunkedReader(String input, final int chunk) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/ioutil/discard.go
var Discard io.Writer = discard{} // discard is /dev/null for Golang. type discard struct{} func (discard) Write(p []byte) (int, error) { return len(p), nil } // DiscardReader discarded reader func DiscardReader(r io.Reader) { Copy(Discard, r)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Nov 06 22:26:08 UTC 2023 - 1.3K bytes - Viewed (0) -
cmd/erasure-decode.go
} if offset+length > totalLength { return -1, errInvalidArgument } if length == 0 { return 0, nil } reader := newParallelReader(readers, e, offset, totalLength) if len(prefer) == len(readers) { reader.preferReaders(prefer) } defer reader.Done() startBlock := offset / e.blockSize endBlock := (offset + length) / e.blockSize var bytesWritten int64 var bufs [][]byte
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 9.5K bytes - Viewed (0)