summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorJeroen Frijters <jeroen@sumatra.nl>2006-01-13 07:44:34 +0000
committerJeroen Frijters <jeroen@sumatra.nl>2006-01-13 07:44:34 +0000
commite389026b0d467bf559037be1a021b0c308cabdea (patch)
tree5fad36ef02741858173c0d720d700885a894784d /java
parenta4f3b5765486d98a73ea994d0434b1427fc9b45e (diff)
downloadclasspath-e389026b0d467bf559037be1a021b0c308cabdea.tar.gz
2005-01-13 Jeroen Frijters <jeroen@frijters.net>
* java/io/PrintStream.java (line_separator, PrintStream(OutputStream,boolean)): Use SystemProperties.
Diffstat (limited to 'java')
-rw-r--r--java/io/PrintStream.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/io/PrintStream.java b/java/io/PrintStream.java
index 8e50559b3..99af25583 100644
--- a/java/io/PrintStream.java
+++ b/java/io/PrintStream.java
@@ -1,5 +1,6 @@
/* PrintStream.java -- OutputStream for printing output
- Copyright (C) 1998, 1999, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -38,6 +39,8 @@ exception statement from your version. */
package java.io;
+import gnu.classpath.SystemProperties;
+
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
* "The Java Language Specification", ISBN 0-201-63451-1
* Status: Believed complete and correct to 1.3
@@ -64,7 +67,7 @@ public class PrintStream extends FilterOutputStream
// Line separator string.
private static final char[] line_separator
- = System.getProperty("line.separator").toCharArray();
+ = SystemProperties.getProperty("line.separator").toCharArray();
/**
* Encoding name
@@ -112,7 +115,7 @@ public class PrintStream extends FilterOutputStream
super (out);
try {
- this.encoding = System.getProperty("file.encoding");
+ this.encoding = SystemProperties.getProperty("file.encoding");
} catch (SecurityException e){
this.encoding = "ISO8859_1";
} catch (IllegalArgumentException e){