Searched refs:lineSeparator (Results 1 – 6 of 6) sorted by relevance
25 String lineSeparator = System.getProperty("line.separator"); in timeDirect() local31 String lineSeparator; in timeFastAndSlow() local33 lineSeparator = System.getProperty("line.separator"); in timeFastAndSlow()35 lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeFastAndSlow()46 String lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeNewAction() local57 String lineSeparator = AccessController.doPrivileged(action); in timeReusedAction() local
41 assertEquals("\n", System.lineSeparator()); in testLineSeparator()43 assertEquals("\n", System.lineSeparator()); in testLineSeparator()50 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()55 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8")); in testLineSeparator()60 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()63 assertEquals(System.lineSeparator(), new Formatter().format("%n").toString()); in testLineSeparator()
79 private String lineSeparator; field in BufferedWriter109 lineSeparator = java.security.AccessController.doPrivileged( in BufferedWriter()243 write(lineSeparator); in newLine()
75 private final String lineSeparator; field in PrintWriter116 lineSeparator = java.security.AccessController.doPrivileged( in PrintWriter()480 out.write(lineSeparator); in newLine()
1137 public static String lineSeparator() { in lineSeparator() method in System1138 return lineSeparator; in lineSeparator()1141 private static String lineSeparator; field in System1559 lineSeparator = props.getProperty("line.separator");
2808 a.append(System.lineSeparator()); in print()