public final class Utf8CodingException extends RuntimeException
| Constructor and Description |
|---|
Utf8CodingException(String message)
A coding exception occured processing UTF_8
|
| Modifier and Type | Method and Description |
|---|---|
static Utf8CodingException |
illegalSurrogatePair(char c1,
char c2)
Exception for an illegal surrogate pair
|
static Utf8CodingException |
illegalUtf8DecodeByteSequence(byte[] bytes)
Exception for an illegal UTF_8 Decode Byte Sequence
|
static Utf8CodingException |
outOfMemory()
Exception for out-of-memory
|
static Utf8CodingException |
shortUtf8DecodeByteSequence(byte leadByte,
long address,
long limit,
int required)
Exception for a short UTF_8 Decode Byte Sequence
|
static Utf8CodingException |
shortUtf8EncodeByteLength(int remaining)
Exception for a short UTF_8 encode byte length
|
static Utf8CodingException |
unpairedSurrogate(char c)
Exception for an unpaired surrogate
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Utf8CodingException(String message)
message - the error messagepublic static Utf8CodingException shortUtf8DecodeByteSequence(byte leadByte, long address, long limit, int required)
leadByte - the given lead byteaddress - the given addresslimit - the given limitrequired - what is requiredpublic static Utf8CodingException illegalUtf8DecodeByteSequence(byte[] bytes)
bytes - the illegal byte sequencepublic static Utf8CodingException outOfMemory()
public static Utf8CodingException unpairedSurrogate(char c)
c - The last char to encode is an unpaired surrogatepublic static Utf8CodingException shortUtf8EncodeByteLength(int remaining)
remaining - The surrogate pair that is shortpublic static Utf8CodingException illegalSurrogatePair(char c1, char c2)
c1 - the first character of the pairc2 - the second character of the pairCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.