37 |
|
|
38 |
package java.nio.charset; |
package java.nio.charset; |
39 |
|
|
40 |
|
import java.lang.ref.WeakReference; |
41 |
import java.nio.BufferOverflowException; |
import java.nio.BufferOverflowException; |
42 |
import java.nio.BufferUnderflowException; |
import java.nio.BufferUnderflowException; |
43 |
import java.util.HashMap; |
import java.util.HashMap; |
48 |
*/ |
*/ |
49 |
public class CoderResult |
public class CoderResult |
50 |
{ |
{ |
|
public static final CoderResult OVERFLOW |
|
|
= new CoderResult (TYPE_OVERFLOW, 0); |
|
|
public static final CoderResult UNDERFLOW |
|
|
= new CoderResult (TYPE_UNDERFLOW, 0); |
|
|
|
|
51 |
private static final int TYPE_MALFORMED = 0; |
private static final int TYPE_MALFORMED = 0; |
52 |
private static final int TYPE_OVERFLOW = 1; |
private static final int TYPE_OVERFLOW = 1; |
53 |
private static final int TYPE_UNDERFLOW = 2; |
private static final int TYPE_UNDERFLOW = 2; |
54 |
private static final int TYPE_UNMAPPABLE = 3; |
private static final int TYPE_UNMAPPABLE = 3; |
55 |
|
|
56 |
|
public static final CoderResult OVERFLOW |
57 |
|
= new CoderResult (TYPE_OVERFLOW, 0); |
58 |
|
public static final CoderResult UNDERFLOW |
59 |
|
= new CoderResult (TYPE_UNDERFLOW, 0); |
60 |
|
|
61 |
private static final String[] names |
private static final String[] names |
62 |
= { "MALFORMED", "OVERFLOW", "UNDERFLOW", "UNMAPPABLE" }; |
= { "MALFORMED", "OVERFLOW", "UNDERFLOW", "UNMAPPABLE" }; |
63 |
|
|