From 15abeadf97a369a32aba39cd94184c23bc3216d6 Mon Sep 17 00:00:00 2001 From: mkoch Date: Thu, 10 Oct 2002 05:19:22 +0000 Subject: 2002-10-08 Michael Koch * java/net/HttpURLConnection.java (getPermission): New method. (getErrorStream): New stub method. (getHeaderFieldDate): New stub method. * java/net/Inet4Address.java: (isLinkLocalAddress): Typo fixed. * java/net/InetAddress.java: (readResolve): New stubbed method (for serialization). (isAnyLocalAddress): New stubbed method. (isLoopbackAddress): New stubbed method. (isLinkLocalAddress): New stubbed method. (isSiteLocalAddress): New stubbed method. (isMCGlobal): New stubbed method. (isMCNodeGlobal): New stubbed method. (isMCLinkLocal): New stubbed method. (isMCSiteLocal): New stubbed method. (isMCOrgLocal): New stubbed method. (getCanonicalHostName): New stubbed method. (getByAddress): Create instances of Inet4Address/Inet6Address, instead of InetAddress, documentation added. * java/net/MulticastSocket.java (getInterface): Removed FIXME. (getNetworkInterface): New method. (setNetworkInterface): New method. * java/net/NetworkInterface.java: (toString): Use property "line.separator" instead of "\n". * java/net/URLConnection.java (getContent): New stubbed method. * java/net/URLStreamHandler.java: (equals): New stubbed method. (hostsEqual): New stubbed method. (hashCode): New stubbed method. * java/net/natNetworkInterface.cc: (getRealNetworkInterfaces): Create Inet4Address object instead of InetAddress. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58002 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/net/NetworkInterface.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libjava/java/net/NetworkInterface.java') diff --git a/libjava/java/net/NetworkInterface.java b/libjava/java/net/NetworkInterface.java index f0113d03808..60a7d764cbc 100644 --- a/libjava/java/net/NetworkInterface.java +++ b/libjava/java/net/NetworkInterface.java @@ -220,15 +220,16 @@ public final class NetworkInterface { // FIXME: check if this is correct String result; + String separator = System.getProperty ("line.separator"); result = "name: " + getDisplayName () + " (" + getName () + - ") addresses:\n"; + ") addresses:" + separator; for (Enumeration e = inetAddresses.elements (); e.hasMoreElements (); ) { InetAddress address = (InetAddress) e.nextElement (); - result += address.toString () + "\n"; + result += address.toString () + separator; } return result; -- cgit v1.2.1