public static class Surrogate.Generator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.nio.charset.CoderResult |
error |
Constructor and Description |
---|
Generator() |
Modifier and Type | Method and Description |
---|---|
java.nio.charset.CoderResult |
error()
If the previous generation operation detected an error, return the
object describing that error.
|
int |
generate(int uc,
int len,
char[] da,
int dp,
int dl)
Generates one or two UTF-16 characters to represent the given UCS-4
character.
|
int |
generate(int uc,
int len,
java.nio.CharBuffer dst)
Generates one or two UTF-16 characters to represent the given UCS-4
character.
|
public java.nio.charset.CoderResult error()
public int generate(int uc, int len, java.nio.CharBuffer dst)
uc
- The UCS-4 characterlen
- The number of input bytes from which the UCS-4 value
was constructed (used when creating result objects)dst
- The destination buffer, to which one or two UTF-16
characters will be writtenpublic int generate(int uc, int len, char[] da, int dp, int dl)
uc
- The UCS-4 characterlen
- The number of input bytes from which the UCS-4 value
was constructed (used when creating result objects)da
- The destination array, to which one or two UTF-16
characters will be writtendp
- The destination positiondl
- The destination limit