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 // -- This file was mechanically generated: Do not edit! -- //
28 
29 package java.nio.charset;
30 
31 import android.compat.annotation.UnsupportedAppUsage;
32 
33 @SuppressWarnings({"unchecked", "deprecation", "all"})
34 public abstract class CharsetEncoder {
35 
CharsetEncoder( java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement)36     protected CharsetEncoder(
37             java.nio.charset.Charset cs,
38             float averageBytesPerChar,
39             float maxBytesPerChar,
40             byte[] replacement) {
41         throw new RuntimeException("Stub!");
42     }
43 
CharsetEncoder( java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, boolean trusted)44     CharsetEncoder(
45             java.nio.charset.Charset cs,
46             float averageBytesPerChar,
47             float maxBytesPerChar,
48             byte[] replacement,
49             boolean trusted) {
50         throw new RuntimeException("Stub!");
51     }
52 
CharsetEncoder( java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar)53     protected CharsetEncoder(
54             java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar) {
55         throw new RuntimeException("Stub!");
56     }
57 
charset()58     public final java.nio.charset.Charset charset() {
59         throw new RuntimeException("Stub!");
60     }
61 
replacement()62     public final byte[] replacement() {
63         throw new RuntimeException("Stub!");
64     }
65 
replaceWith(byte[] newReplacement)66     public final java.nio.charset.CharsetEncoder replaceWith(byte[] newReplacement) {
67         throw new RuntimeException("Stub!");
68     }
69 
implReplaceWith(byte[] newReplacement)70     protected void implReplaceWith(byte[] newReplacement) {
71         throw new RuntimeException("Stub!");
72     }
73 
isLegalReplacement(byte[] repl)74     public boolean isLegalReplacement(byte[] repl) {
75         throw new RuntimeException("Stub!");
76     }
77 
malformedInputAction()78     public java.nio.charset.CodingErrorAction malformedInputAction() {
79         throw new RuntimeException("Stub!");
80     }
81 
onMalformedInput( java.nio.charset.CodingErrorAction newAction)82     public final java.nio.charset.CharsetEncoder onMalformedInput(
83             java.nio.charset.CodingErrorAction newAction) {
84         throw new RuntimeException("Stub!");
85     }
86 
implOnMalformedInput(java.nio.charset.CodingErrorAction newAction)87     protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) {
88         throw new RuntimeException("Stub!");
89     }
90 
unmappableCharacterAction()91     public java.nio.charset.CodingErrorAction unmappableCharacterAction() {
92         throw new RuntimeException("Stub!");
93     }
94 
onUnmappableCharacter( java.nio.charset.CodingErrorAction newAction)95     public final java.nio.charset.CharsetEncoder onUnmappableCharacter(
96             java.nio.charset.CodingErrorAction newAction) {
97         throw new RuntimeException("Stub!");
98     }
99 
implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)100     protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) {
101         throw new RuntimeException("Stub!");
102     }
103 
averageBytesPerChar()104     public final float averageBytesPerChar() {
105         throw new RuntimeException("Stub!");
106     }
107 
maxBytesPerChar()108     public final float maxBytesPerChar() {
109         throw new RuntimeException("Stub!");
110     }
111 
encode( java.nio.CharBuffer in, java.nio.ByteBuffer out, boolean endOfInput)112     public final java.nio.charset.CoderResult encode(
113             java.nio.CharBuffer in, java.nio.ByteBuffer out, boolean endOfInput) {
114         throw new RuntimeException("Stub!");
115     }
116 
flush(java.nio.ByteBuffer out)117     public final java.nio.charset.CoderResult flush(java.nio.ByteBuffer out) {
118         throw new RuntimeException("Stub!");
119     }
120 
implFlush(java.nio.ByteBuffer out)121     protected java.nio.charset.CoderResult implFlush(java.nio.ByteBuffer out) {
122         throw new RuntimeException("Stub!");
123     }
124 
reset()125     public final java.nio.charset.CharsetEncoder reset() {
126         throw new RuntimeException("Stub!");
127     }
128 
implReset()129     protected void implReset() {
130         throw new RuntimeException("Stub!");
131     }
132 
encodeLoop( java.nio.CharBuffer in, java.nio.ByteBuffer out)133     protected abstract java.nio.charset.CoderResult encodeLoop(
134             java.nio.CharBuffer in, java.nio.ByteBuffer out);
135 
encode(java.nio.CharBuffer in)136     public final java.nio.ByteBuffer encode(java.nio.CharBuffer in)
137             throws java.nio.charset.CharacterCodingException {
138         throw new RuntimeException("Stub!");
139     }
140 
141     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
canEncode(java.nio.CharBuffer cb)142     private boolean canEncode(java.nio.CharBuffer cb) {
143         throw new RuntimeException("Stub!");
144     }
145 
canEncode(char c)146     public boolean canEncode(char c) {
147         throw new RuntimeException("Stub!");
148     }
149 
canEncode(java.lang.CharSequence cs)150     public boolean canEncode(java.lang.CharSequence cs) {
151         throw new RuntimeException("Stub!");
152     }
153 
throwIllegalStateException(int from, int to)154     private void throwIllegalStateException(int from, int to) {
155         throw new RuntimeException("Stub!");
156     }
157 
158     private static final int ST_CODING = 1; // 0x1
159 
160     private static final int ST_END = 2; // 0x2
161 
162     private static final int ST_FLUSHED = 3; // 0x3
163 
164     private static final int ST_RESET = 0; // 0x0
165 
166     private final float averageBytesPerChar;
167 
168     {
169         averageBytesPerChar = 0;
170     }
171 
172     private java.lang.ref.WeakReference<java.nio.charset.CharsetDecoder> cachedDecoder;
173 
174     private final java.nio.charset.Charset charset;
175 
176     {
177         charset = null;
178     }
179 
180     private java.nio.charset.CodingErrorAction malformedInputAction;
181 
182     private final float maxBytesPerChar;
183 
184     {
185         maxBytesPerChar = 0;
186     }
187 
188     private byte[] replacement;
189 
190     private int state = 0; // 0x0
191 
192     private static java.lang.String[] stateNames;
193 
194     private java.nio.charset.CodingErrorAction unmappableCharacterAction;
195 }
196