aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/java/lang/System.java
diff options
context:
space:
mode:
authorMatthias Klose <doko@gcc.gnu.org>2012-12-19 17:03:15 +0000
committerMatthias Klose <doko@gcc.gnu.org>2012-12-19 17:03:15 +0000
commita1906e8bbfa426ed1adfe751608bc74f1d4d2ab7 (patch)
tree9b478aacc6b13f1beadacec2ade096dcb732af53 /libjava/classpath/java/lang/System.java
parentbaeb2e16475b278e83fe73751d4f0f572805b16e (diff)
downloadgcc-a1906e8bbfa426ed1adfe751608bc74f1d4d2ab7.zip
gcc-a1906e8bbfa426ed1adfe751608bc74f1d4d2ab7.tar.gz
gcc-a1906e8bbfa426ed1adfe751608bc74f1d4d2ab7.tar.bz2
Import GNU Classpath (20121202).
2012-12-19 Matthias Klose <doko@ubuntu.com> Import GNU Classpath (20121202). * Regenerate class and header files. * Regenerate auto* files. * sources.am, gcj/javaprims.h: Regenerate. * gnu/java/nio/FileLockImpl.java (close): New override. From-SVN: r194618
Diffstat (limited to 'libjava/classpath/java/lang/System.java')
-rw-r--r--libjava/classpath/java/lang/System.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/libjava/classpath/java/lang/System.java b/libjava/classpath/java/lang/System.java
index 51b3259..9d86991 100644
--- a/libjava/classpath/java/lang/System.java
+++ b/libjava/classpath/java/lang/System.java
@@ -97,6 +97,8 @@ public final class System
*/
public static final PrintStream out = VMSystem.makeStandardOutputStream();
+ private static final String LINE_SEPARATOR = SystemProperties.getProperty("line.separator");
+
/**
* The standard output PrintStream. This is assigned at startup and
* starts its life perfectly valid. Although it is marked final, you can
@@ -713,6 +715,16 @@ public final class System
}
/**
+ * Returns the system-dependent line separator.
+ *
+ * @return the system-dependent line separator.
+ */
+ public static String lineSeparator()
+ {
+ return LINE_SEPARATOR;
+ }
+
+ /**
* This is a specialised <code>Collection</code>, providing
* the necessary provisions for the collections used by the
* environment variable map. Namely, it prevents