1 /* 2 * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 /*- 27 * news stream opener 28 */ 29 30 package sun.net.www; 31 32 import java.io.*; 33 import java.util.*; 34 35 @SuppressWarnings({"unchecked", "deprecation", "all"}) 36 public class MessageHeader { 37 38 @dalvik.annotation.compat.UnsupportedAppUsage MessageHeader()39 public MessageHeader() { 40 throw new RuntimeException("Stub!"); 41 } 42 43 @dalvik.annotation.compat.UnsupportedAppUsage MessageHeader(java.io.InputStream is)44 public MessageHeader(java.io.InputStream is) throws java.io.IOException { 45 throw new RuntimeException("Stub!"); 46 } 47 getHeaderNamesInList()48 public synchronized java.lang.String getHeaderNamesInList() { 49 throw new RuntimeException("Stub!"); 50 } 51 reset()52 public synchronized void reset() { 53 throw new RuntimeException("Stub!"); 54 } 55 56 @dalvik.annotation.compat.UnsupportedAppUsage findValue(java.lang.String k)57 public synchronized java.lang.String findValue(java.lang.String k) { 58 throw new RuntimeException("Stub!"); 59 } 60 getKey(java.lang.String k)61 public synchronized int getKey(java.lang.String k) { 62 throw new RuntimeException("Stub!"); 63 } 64 getKey(int n)65 public synchronized java.lang.String getKey(int n) { 66 throw new RuntimeException("Stub!"); 67 } 68 getValue(int n)69 public synchronized java.lang.String getValue(int n) { 70 throw new RuntimeException("Stub!"); 71 } 72 findNextValue(java.lang.String k, java.lang.String v)73 public synchronized java.lang.String findNextValue(java.lang.String k, java.lang.String v) { 74 throw new RuntimeException("Stub!"); 75 } 76 filterNTLMResponses(java.lang.String k)77 public boolean filterNTLMResponses(java.lang.String k) { 78 throw new RuntimeException("Stub!"); 79 } 80 multiValueIterator(java.lang.String k)81 public java.util.Iterator<java.lang.String> multiValueIterator(java.lang.String k) { 82 throw new RuntimeException("Stub!"); 83 } 84 85 public synchronized java.util.Map<java.lang.String, java.util.List<java.lang.String>> getHeaders()86 getHeaders() { 87 throw new RuntimeException("Stub!"); 88 } 89 90 public synchronized java.util.Map<java.lang.String, java.util.List<java.lang.String>> getHeaders(java.lang.String[] excludeList)91 getHeaders(java.lang.String[] excludeList) { 92 throw new RuntimeException("Stub!"); 93 } 94 95 public synchronized java.util.Map<java.lang.String, java.util.List<java.lang.String>> filterAndAddHeaders( java.lang.String[] excludeList, java.util.Map<java.lang.String, java.util.List<java.lang.String>> include)96 filterAndAddHeaders( 97 java.lang.String[] excludeList, 98 java.util.Map<java.lang.String, java.util.List<java.lang.String>> include) { 99 throw new RuntimeException("Stub!"); 100 } 101 102 @dalvik.annotation.compat.UnsupportedAppUsage print(java.io.PrintStream p)103 public synchronized void print(java.io.PrintStream p) { 104 throw new RuntimeException("Stub!"); 105 } 106 107 @dalvik.annotation.compat.UnsupportedAppUsage add(java.lang.String k, java.lang.String v)108 public synchronized void add(java.lang.String k, java.lang.String v) { 109 throw new RuntimeException("Stub!"); 110 } 111 112 @dalvik.annotation.compat.UnsupportedAppUsage prepend(java.lang.String k, java.lang.String v)113 public synchronized void prepend(java.lang.String k, java.lang.String v) { 114 throw new RuntimeException("Stub!"); 115 } 116 set(int i, java.lang.String k, java.lang.String v)117 public synchronized void set(int i, java.lang.String k, java.lang.String v) { 118 throw new RuntimeException("Stub!"); 119 } 120 grow()121 private void grow() { 122 throw new RuntimeException("Stub!"); 123 } 124 remove(java.lang.String k)125 public synchronized void remove(java.lang.String k) { 126 throw new RuntimeException("Stub!"); 127 } 128 129 @dalvik.annotation.compat.UnsupportedAppUsage set(java.lang.String k, java.lang.String v)130 public synchronized void set(java.lang.String k, java.lang.String v) { 131 throw new RuntimeException("Stub!"); 132 } 133 setIfNotSet(java.lang.String k, java.lang.String v)134 public synchronized void setIfNotSet(java.lang.String k, java.lang.String v) { 135 throw new RuntimeException("Stub!"); 136 } 137 canonicalID(java.lang.String id)138 public static java.lang.String canonicalID(java.lang.String id) { 139 throw new RuntimeException("Stub!"); 140 } 141 parseHeader(java.io.InputStream is)142 public void parseHeader(java.io.InputStream is) throws java.io.IOException { 143 throw new RuntimeException("Stub!"); 144 } 145 mergeHeader(java.io.InputStream is)146 public void mergeHeader(java.io.InputStream is) throws java.io.IOException { 147 throw new RuntimeException("Stub!"); 148 } 149 toString()150 public synchronized java.lang.String toString() { 151 throw new RuntimeException("Stub!"); 152 } 153 154 private java.lang.String[] keys; 155 156 private int nkeys; 157 158 private java.lang.String[] values; 159 160 @SuppressWarnings({"unchecked", "deprecation", "all"}) 161 class HeaderIterator implements java.util.Iterator<java.lang.String> { 162 HeaderIterator(java.lang.String k, java.lang.Object lock)163 public HeaderIterator(java.lang.String k, java.lang.Object lock) { 164 throw new RuntimeException("Stub!"); 165 } 166 hasNext()167 public boolean hasNext() { 168 throw new RuntimeException("Stub!"); 169 } 170 next()171 public java.lang.String next() { 172 throw new RuntimeException("Stub!"); 173 } 174 remove()175 public void remove() { 176 throw new RuntimeException("Stub!"); 177 } 178 179 boolean haveNext = false; 180 181 int index = 0; // 0x0 182 183 java.lang.String key; 184 185 java.lang.Object lock; 186 187 int next = -1; // 0xffffffff 188 } 189 } 190