- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for readFirstLine (0.21 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/info/GitInfo.java
final Path workTree = Paths.get(readFirstLine(dotGit).substring("gitdir:".length()).trim()); if (Files.exists(workTree) == false) { return new GitInfo("unknown", "unknown"); } head = workTree.resolve("HEAD"); final Path commonDir = Paths.get(readFirstLine(workTree.resolve("commondir"))); if (commonDir.isAbsolute()) {
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 7.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Files.java
* @deprecated Prefer {@code asCharSource(file, charset).readFirstLine()}. */ @Deprecated @InlineMe( replacement = "Files.asCharSource(file, charset).readFirstLine()", imports = "com.google.common.io.Files") public static @Nullable String readFirstLine(File file, Charset charset) throws IOException { return asCharSource(file, charset).readFirstLine(); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jan 05 22:13:21 GMT 2026 - 32.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/CharSource.java
* it does. * * @throws IOException if an I/O error occurs while reading from this source */ public @Nullable String readFirstLine() throws IOException { Closer closer = Closer.create(); try { BufferedReader reader = closer.register(openBufferedStream()); return reader.readLine(); } catch (Throwable e) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 25.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
assertExpectedString(string); } public void testReadFirstLine() throws IOException { if (expectedLines.isEmpty()) { assertThat(source.readFirstLine()).isNull(); } else { assertThat(source.readFirstLine()).isEqualTo(expectedLines.get(0)); } } public void testReadLines_toList() throws IOException { assertExpectedLines(source.readLines()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 7.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
File temp = createTempFile(); assertThat(Files.readFirstLine(temp, UTF_8)).isNull(); assertTrue(Files.readLines(temp, UTF_8).isEmpty()); PrintWriter w = new PrintWriter(Files.newWriter(temp, UTF_8)); w.println("hello"); w.println(""); w.println(" world "); w.println(""); w.close(); assertThat(Files.readFirstLine(temp, UTF_8)).isEqualTo("hello");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 22.8K bytes - Click Count (0)