jdk/src/java.base/share/classes/sun/misc/JavaNetAccess.java
changeset 31687 d6eb4f028c60
parent 25859 3317bb8137f4
child 31918 1f13aceb00d7
--- a/jdk/src/java.base/share/classes/sun/misc/JavaNetAccess.java	Wed Jul 15 12:10:03 2015 +0800
+++ b/jdk/src/java.base/share/classes/sun/misc/JavaNetAccess.java	Wed Feb 04 11:13:14 2015 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,10 +26,17 @@
 package sun.misc;
 
 import java.net.URLClassLoader;
+import java.net.InetAddress;
 
 public interface JavaNetAccess {
     /**
      * return the URLClassPath belonging to the given loader
      */
     URLClassPath getURLClassPath (URLClassLoader u);
+
+    /**
+     * Return the original application specified hostname of
+     * the given InetAddress object.
+     */
+    String getOriginalHostName(InetAddress ia);
 }