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 
30 package java.nio.charset;
31 
32 import java.nio.CharBuffer;
33 import java.nio.ByteBuffer;
34 import java.nio.Buffer;
35 import java.nio.charset.CoderMalfunctionError;
36 
37 @SuppressWarnings({"unchecked", "deprecation", "all"})
38 public abstract class CharsetEncoder {
39 
CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement)40 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) { throw new RuntimeException("Stub!"); }
41 
42 @libcore.api.IntraCoreApi
CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, boolean trusted)43 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, boolean trusted) { throw new RuntimeException("Stub!"); }
44 
CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar)45 protected CharsetEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar) { throw new RuntimeException("Stub!"); }
46 
charset()47 public final java.nio.charset.Charset charset() { throw new RuntimeException("Stub!"); }
48 
replacement()49 public final byte[] replacement() { throw new RuntimeException("Stub!"); }
50 
replaceWith(byte[] newReplacement)51 public final java.nio.charset.CharsetEncoder replaceWith(byte[] newReplacement) { throw new RuntimeException("Stub!"); }
52 
implReplaceWith(byte[] newReplacement)53 protected void implReplaceWith(byte[] newReplacement) { throw new RuntimeException("Stub!"); }
54 
isLegalReplacement(byte[] repl)55 public boolean isLegalReplacement(byte[] repl) { throw new RuntimeException("Stub!"); }
56 
malformedInputAction()57 public java.nio.charset.CodingErrorAction malformedInputAction() { throw new RuntimeException("Stub!"); }
58 
onMalformedInput(java.nio.charset.CodingErrorAction newAction)59 public final java.nio.charset.CharsetEncoder onMalformedInput(java.nio.charset.CodingErrorAction newAction) { throw new RuntimeException("Stub!"); }
60 
implOnMalformedInput(java.nio.charset.CodingErrorAction newAction)61 protected void implOnMalformedInput(java.nio.charset.CodingErrorAction newAction) { throw new RuntimeException("Stub!"); }
62 
unmappableCharacterAction()63 public java.nio.charset.CodingErrorAction unmappableCharacterAction() { throw new RuntimeException("Stub!"); }
64 
onUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)65 public final java.nio.charset.CharsetEncoder onUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) { throw new RuntimeException("Stub!"); }
66 
implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction)67 protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction newAction) { throw new RuntimeException("Stub!"); }
68 
averageBytesPerChar()69 public final float averageBytesPerChar() { throw new RuntimeException("Stub!"); }
70 
maxBytesPerChar()71 public final float maxBytesPerChar() { throw new RuntimeException("Stub!"); }
72 
encode(java.nio.CharBuffer in, java.nio.ByteBuffer out, boolean endOfInput)73 public final java.nio.charset.CoderResult encode(java.nio.CharBuffer in, java.nio.ByteBuffer out, boolean endOfInput) { throw new RuntimeException("Stub!"); }
74 
flush(java.nio.ByteBuffer out)75 public final java.nio.charset.CoderResult flush(java.nio.ByteBuffer out) { throw new RuntimeException("Stub!"); }
76 
implFlush(java.nio.ByteBuffer out)77 protected java.nio.charset.CoderResult implFlush(java.nio.ByteBuffer out) { throw new RuntimeException("Stub!"); }
78 
reset()79 public final java.nio.charset.CharsetEncoder reset() { throw new RuntimeException("Stub!"); }
80 
implReset()81 protected void implReset() { throw new RuntimeException("Stub!"); }
82 
encodeLoop(java.nio.CharBuffer in, java.nio.ByteBuffer out)83 protected abstract java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer in, java.nio.ByteBuffer out);
84 
encode(java.nio.CharBuffer in)85 public final java.nio.ByteBuffer encode(java.nio.CharBuffer in) throws java.nio.charset.CharacterCodingException { throw new RuntimeException("Stub!"); }
86 
canEncode(char c)87 public boolean canEncode(char c) { throw new RuntimeException("Stub!"); }
88 
canEncode(java.lang.CharSequence cs)89 public boolean canEncode(java.lang.CharSequence cs) { throw new RuntimeException("Stub!"); }
90 }
91 
92