home *** CD-ROM | disk | FTP | other *** search
- package sun.awt;
-
- import java.nio.ByteBuffer;
- import java.nio.CharBuffer;
- import java.nio.charset.CharsetDecoder;
- import java.nio.charset.CoderResult;
- import java.nio.charset.CodingErrorAction;
-
- public class AWTCharset$Decoder extends CharsetDecoder {
- protected CharsetDecoder dec;
- // $FF: renamed from: nr java.lang.String
- private String field_0;
- ByteBuffer fbb;
- // $FF: synthetic field
- final AWTCharset this$0;
-
- protected AWTCharset$Decoder(AWTCharset var1) {
- this(var1, var1.javaCs.newDecoder());
- }
-
- protected AWTCharset$Decoder(AWTCharset var1, CharsetDecoder var2) {
- super(var1.awtCs, var2.averageCharsPerByte(), var2.maxCharsPerByte());
- this.this$0 = var1;
- this.fbb = ByteBuffer.allocate(0);
- this.dec = var2;
- }
-
- protected CoderResult decodeLoop(ByteBuffer var1, CharBuffer var2) {
- return this.dec.decode(var1, var2, true);
- }
-
- protected CoderResult implFlush(CharBuffer var1) {
- this.dec.decode(this.fbb, var1, true);
- return this.dec.flush(var1);
- }
-
- protected void implReset() {
- this.dec.reset();
- }
-
- protected void implReplaceWith(String var1) {
- if (this.dec != null) {
- this.dec.replaceWith(var1);
- }
-
- }
-
- protected void implOnMalformedInput(CodingErrorAction var1) {
- this.dec.onMalformedInput(var1);
- }
-
- protected void implOnUnmappableCharacter(CodingErrorAction var1) {
- this.dec.onUnmappableCharacter(var1);
- }
- }
-