Searched refs:lines (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldManifestTest.java181 List<String> lines = Arrays.asList(new String(os.toByteArray(), "UTF-8").split("\r\n"));
184 assertEquals("Manifest-Version: 1.0", lines.get(0));
186 assertTrue(lines.contains("Aardvark-Version: 3.0"));
187 assertTrue(lines.contains("Signature-Version: 2.0"));
/libcore/tools/upstream/src/main/java/libcore/
H A DCompareUpstreams.java75 private static Map<String, Integer> androidChangedComments(List<String> lines) { argument
80 for (String line : lines) {
106 private static String androidChangedCommentsSummary(List<String> lines) { argument
107 Map<String, Integer> map = androidChangedComments(lines);
177 * missing, identical, or by how many lines it differs, and
217 .format(Locale.US, "%.1f%% different (%d lines)", percentDifferent,
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DFiles2Test.java924 List<String> lines = new ArrayList<>();
925 lines.add(UTF_16_DATA);
926 lines.add(TEST_FILE_DATA);
927 Files.write(filesSetup.getDataFilePath(), lines, StandardCharsets.UTF_16);
928 try (Stream<String> readLines = Files.lines(filesSetup.getDataFilePath(),
930 Iterator<String> lineIterator = lines.iterator();
936 try (Stream<String> readLines = Files.lines(filesSetup.getTestDirPath(),
946 try (Stream<String> readLines = Files.lines(filesSetup.getTestPath(),
955 Files.lines(null, StandardCharsets.UTF_16);
960 Files.lines(filesSetu
[all...]
/libcore/ojluni/src/main/java/java/nio/file/
H A DFiles.java3163 * Read all lines from a file. This method ensures that the file is
3179 * convenient to read all lines in a single operation. It is not intended
3187 * @return the lines from the file as a {@code List}; whether the {@code
3215 * Read all lines from a file. Bytes from the file are decoded into characters
3227 * @return the lines from the file as a {@code List}; whether the {@code
3305 * Write lines of text to a file. Each line is a char sequence and is
3319 * lines have been written (or an I/O error or other runtime exception is
3325 * @param lines
3344 public static Path write(Path path, Iterable<? extends CharSequence> lines, argument
3348 // ensure lines i
3392 write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options) argument
3743 public static Stream<String> lines(Path path, Charset cs) throws IOException { method in class:Files
3784 public static Stream<String> lines(Path path) throws IOException { method in class:Files
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DBufferedReaderTest.java61 private void assertLines(String in, String... lines) throws IOException { argument
64 for (String line : lines) {
576 * @tests java.io.BufferedReader#lines()
579 // Test for method java.util.stream.Stream java.io.BufferedReader.lines()
581 String[] r = br.lines().toArray(String[]::new);
/libcore/ojluni/src/main/java/java/io/
H A DBufferedReader.java39 * provide for the efficient reading of characters, arrays, and lines.
545 * Returns a {@code Stream}, the elements of which are lines read from
567 * @return a {@code Stream<String>} providing the lines of text
572 public Stream<String> lines() { method in class:BufferedReader
H A DStreamTokenizer.java214 * <li>Ends of lines are treated as white space, not as separate tokens.
335 * lines. The {@code lineno} method may no longer reflect
418 * If the flag argument is true, this tokenizer treats end of lines
/libcore/luni/src/test/java/libcore/java/util/
H A DBase64Test.java1085 List<String> lines = new ArrayList<>();
1087 lines.add(longString.substring(pos, Math.min(longString.length(), pos + lineLength)));
1089 return lines;
/libcore/
H A DJavaLibrary.mk76 local_javac_flags+= -g:source,lines
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java1852 public static final int lines = 0; field in class:R

Completed in 409 milliseconds