• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 
28 package java.net;
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public class InetAddress implements java.io.Serializable {
32 
InetAddress()33 InetAddress() { throw new RuntimeException("Stub!"); }
34 
isMulticastAddress()35 public boolean isMulticastAddress() { throw new RuntimeException("Stub!"); }
36 
isAnyLocalAddress()37 public boolean isAnyLocalAddress() { throw new RuntimeException("Stub!"); }
38 
isLoopbackAddress()39 public boolean isLoopbackAddress() { throw new RuntimeException("Stub!"); }
40 
isLinkLocalAddress()41 public boolean isLinkLocalAddress() { throw new RuntimeException("Stub!"); }
42 
isSiteLocalAddress()43 public boolean isSiteLocalAddress() { throw new RuntimeException("Stub!"); }
44 
isMCGlobal()45 public boolean isMCGlobal() { throw new RuntimeException("Stub!"); }
46 
isMCNodeLocal()47 public boolean isMCNodeLocal() { throw new RuntimeException("Stub!"); }
48 
isMCLinkLocal()49 public boolean isMCLinkLocal() { throw new RuntimeException("Stub!"); }
50 
isMCSiteLocal()51 public boolean isMCSiteLocal() { throw new RuntimeException("Stub!"); }
52 
isMCOrgLocal()53 public boolean isMCOrgLocal() { throw new RuntimeException("Stub!"); }
54 
isReachable(int timeout)55 public boolean isReachable(int timeout) throws java.io.IOException { throw new RuntimeException("Stub!"); }
56 
isReachable(@ibcore.util.Nullable java.net.NetworkInterface netif, int ttl, int timeout)57 public boolean isReachable(@libcore.util.Nullable java.net.NetworkInterface netif, int ttl, int timeout) throws java.io.IOException { throw new RuntimeException("Stub!"); }
58 
getHostName()59 @libcore.util.NonNull public java.lang.String getHostName() { throw new RuntimeException("Stub!"); }
60 
getCanonicalHostName()61 @libcore.util.NonNull public java.lang.String getCanonicalHostName() { throw new RuntimeException("Stub!"); }
62 
getAddress()63 public byte[] getAddress() { throw new RuntimeException("Stub!"); }
64 
getHostAddress()65 @libcore.util.Nullable public java.lang.String getHostAddress() { throw new RuntimeException("Stub!"); }
66 
hashCode()67 public int hashCode() { throw new RuntimeException("Stub!"); }
68 
equals(@ibcore.util.Nullable java.lang.Object obj)69 public boolean equals(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
70 
toString()71 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
72 
getByAddress(@ibcore.util.Nullable java.lang.String host, byte[] addr)73 @libcore.util.NonNull public static java.net.InetAddress getByAddress(@libcore.util.Nullable java.lang.String host, byte[] addr) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
74 
getByName(@ibcore.util.Nullable java.lang.String host)75 @libcore.util.NonNull public static java.net.InetAddress getByName(@libcore.util.Nullable java.lang.String host) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
76 
getAllByName(@ibcore.util.Nullable java.lang.String host)77 public static java.net.InetAddress[] getAllByName(@libcore.util.Nullable java.lang.String host) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
78 
getLoopbackAddress()79 @libcore.util.NonNull public static java.net.InetAddress getLoopbackAddress() { throw new RuntimeException("Stub!"); }
80 
getByAddress(byte[] addr)81 @libcore.util.NonNull public static java.net.InetAddress getByAddress(byte[] addr) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
82 
getLocalHost()83 @libcore.util.NonNull public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
84 
getByNameOnNet(@ibcore.util.Nullable java.lang.String host, int netId)85 @libcore.util.NonNull public static java.net.InetAddress getByNameOnNet(@libcore.util.Nullable java.lang.String host, int netId) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
86 
getAllByNameOnNet(@ibcore.util.Nullable java.lang.String host, int netId)87 @libcore.util.NonNull public static java.net.InetAddress[] getAllByNameOnNet(@libcore.util.Nullable java.lang.String host, int netId) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
88 }
89 
90