• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1995, 2005, 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 package sun.misc;
27 
28 
29 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 public abstract class CharacterEncoder {
31 
32     @android.compat.annotation.UnsupportedAppUsage
CharacterEncoder()33     public CharacterEncoder() {
34         throw new RuntimeException("Stub!");
35     }
36 
bytesPerAtom()37     protected abstract int bytesPerAtom();
38 
bytesPerLine()39     protected abstract int bytesPerLine();
40 
41     @android.compat.annotation.UnsupportedAppUsage
encodeBufferPrefix(java.io.OutputStream aStream)42     protected void encodeBufferPrefix(java.io.OutputStream aStream) throws java.io.IOException {
43         throw new RuntimeException("Stub!");
44     }
45 
encodeBufferSuffix(java.io.OutputStream aStream)46     protected void encodeBufferSuffix(java.io.OutputStream aStream) throws java.io.IOException {
47         throw new RuntimeException("Stub!");
48     }
49 
encodeLinePrefix(java.io.OutputStream aStream, int aLength)50     protected void encodeLinePrefix(java.io.OutputStream aStream, int aLength)
51             throws java.io.IOException {
52         throw new RuntimeException("Stub!");
53     }
54 
encodeLineSuffix(java.io.OutputStream aStream)55     protected void encodeLineSuffix(java.io.OutputStream aStream) throws java.io.IOException {
56         throw new RuntimeException("Stub!");
57     }
58 
encodeAtom( java.io.OutputStream aStream, byte[] someBytes, int anOffset, int aLength)59     protected abstract void encodeAtom(
60             java.io.OutputStream aStream, byte[] someBytes, int anOffset, int aLength)
61             throws java.io.IOException;
62 
readFully(java.io.InputStream in, byte[] buffer)63     protected int readFully(java.io.InputStream in, byte[] buffer) throws java.io.IOException {
64         throw new RuntimeException("Stub!");
65     }
66 
encode(java.io.InputStream inStream, java.io.OutputStream outStream)67     public void encode(java.io.InputStream inStream, java.io.OutputStream outStream)
68             throws java.io.IOException {
69         throw new RuntimeException("Stub!");
70     }
71 
encode(byte[] aBuffer, java.io.OutputStream aStream)72     public void encode(byte[] aBuffer, java.io.OutputStream aStream) throws java.io.IOException {
73         throw new RuntimeException("Stub!");
74     }
75 
76     @android.compat.annotation.UnsupportedAppUsage
encode(byte[] aBuffer)77     public java.lang.String encode(byte[] aBuffer) {
78         throw new RuntimeException("Stub!");
79     }
80 
getBytes(java.nio.ByteBuffer bb)81     private byte[] getBytes(java.nio.ByteBuffer bb) {
82         throw new RuntimeException("Stub!");
83     }
84 
encode(java.nio.ByteBuffer aBuffer, java.io.OutputStream aStream)85     public void encode(java.nio.ByteBuffer aBuffer, java.io.OutputStream aStream)
86             throws java.io.IOException {
87         throw new RuntimeException("Stub!");
88     }
89 
encode(java.nio.ByteBuffer aBuffer)90     public java.lang.String encode(java.nio.ByteBuffer aBuffer) {
91         throw new RuntimeException("Stub!");
92     }
93 
encodeBuffer(java.io.InputStream inStream, java.io.OutputStream outStream)94     public void encodeBuffer(java.io.InputStream inStream, java.io.OutputStream outStream)
95             throws java.io.IOException {
96         throw new RuntimeException("Stub!");
97     }
98 
encodeBuffer(byte[] aBuffer, java.io.OutputStream aStream)99     public void encodeBuffer(byte[] aBuffer, java.io.OutputStream aStream)
100             throws java.io.IOException {
101         throw new RuntimeException("Stub!");
102     }
103 
104     @android.compat.annotation.UnsupportedAppUsage
encodeBuffer(byte[] aBuffer)105     public java.lang.String encodeBuffer(byte[] aBuffer) {
106         throw new RuntimeException("Stub!");
107     }
108 
encodeBuffer(java.nio.ByteBuffer aBuffer, java.io.OutputStream aStream)109     public void encodeBuffer(java.nio.ByteBuffer aBuffer, java.io.OutputStream aStream)
110             throws java.io.IOException {
111         throw new RuntimeException("Stub!");
112     }
113 
encodeBuffer(java.nio.ByteBuffer aBuffer)114     public java.lang.String encodeBuffer(java.nio.ByteBuffer aBuffer) {
115         throw new RuntimeException("Stub!");
116     }
117 
118     @android.compat.annotation.UnsupportedAppUsage
119     protected java.io.PrintStream pStream;
120 }
121