1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 2000, 2013, 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 package java.net; 28 29 import android.compat.annotation.UnsupportedAppUsage; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public final class Inet4Address extends java.net.InetAddress { 33 34 @UnsupportedAppUsage Inet4Address()35 Inet4Address() { 36 throw new RuntimeException("Stub!"); 37 } 38 Inet4Address(java.lang.String hostName, byte[] addr)39 Inet4Address(java.lang.String hostName, byte[] addr) { 40 throw new RuntimeException("Stub!"); 41 } 42 Inet4Address(java.lang.String hostName, int address)43 Inet4Address(java.lang.String hostName, int address) { 44 throw new RuntimeException("Stub!"); 45 } 46 writeReplace()47 private java.lang.Object writeReplace() throws java.io.ObjectStreamException { 48 throw new RuntimeException("Stub!"); 49 } 50 isMulticastAddress()51 public boolean isMulticastAddress() { 52 throw new RuntimeException("Stub!"); 53 } 54 isAnyLocalAddress()55 public boolean isAnyLocalAddress() { 56 throw new RuntimeException("Stub!"); 57 } 58 isLoopbackAddress()59 public boolean isLoopbackAddress() { 60 throw new RuntimeException("Stub!"); 61 } 62 isLinkLocalAddress()63 public boolean isLinkLocalAddress() { 64 throw new RuntimeException("Stub!"); 65 } 66 isSiteLocalAddress()67 public boolean isSiteLocalAddress() { 68 throw new RuntimeException("Stub!"); 69 } 70 isMCGlobal()71 public boolean isMCGlobal() { 72 throw new RuntimeException("Stub!"); 73 } 74 isMCNodeLocal()75 public boolean isMCNodeLocal() { 76 throw new RuntimeException("Stub!"); 77 } 78 isMCLinkLocal()79 public boolean isMCLinkLocal() { 80 throw new RuntimeException("Stub!"); 81 } 82 isMCSiteLocal()83 public boolean isMCSiteLocal() { 84 throw new RuntimeException("Stub!"); 85 } 86 isMCOrgLocal()87 public boolean isMCOrgLocal() { 88 throw new RuntimeException("Stub!"); 89 } 90 getAddress()91 public byte[] getAddress() { 92 throw new RuntimeException("Stub!"); 93 } 94 getHostAddress()95 public java.lang.String getHostAddress() { 96 throw new RuntimeException("Stub!"); 97 } 98 hashCode()99 public int hashCode() { 100 throw new RuntimeException("Stub!"); 101 } 102 equals(java.lang.Object obj)103 public boolean equals(java.lang.Object obj) { 104 throw new RuntimeException("Stub!"); 105 } 106 numericToTextFormat(byte[] src)107 static java.lang.String numericToTextFormat(byte[] src) { 108 throw new RuntimeException("Stub!"); 109 } 110 111 @UnsupportedAppUsage 112 public static final java.net.InetAddress ALL; 113 114 static { 115 ALL = null; 116 } 117 118 @UnsupportedAppUsage 119 public static final java.net.InetAddress ANY; 120 121 static { 122 ANY = null; 123 } 124 125 static final int INADDRSZ = 4; // 0x4 126 127 public static final java.net.InetAddress LOOPBACK; 128 129 static { 130 LOOPBACK = null; 131 } 132 133 private static final long serialVersionUID = 3286316764910316507L; // 0x2d9b57af9fe3ebdbL 134 } 135