MalformedByteSequenceExceptionpublic class MalformedByteSequenceException extends CharConversionException Signals that a malformed byte sequence was detected
by a java.io.Reader that decodes bytes
of a given encoding into characters. |
Fields Summary |
---|
static final long | serialVersionUIDSerialization version. | private MessageFormatter | fFormattermessage formatter | private Locale | fLocalelocale for error message | private String | fDomainerror domain | private String | fKeykey for the error message | private Object[] | fArgumentsreplacement arguements for the error message | private String | fMessagemessage text for this message, initially null |
Constructors Summary |
---|
public MalformedByteSequenceException(MessageFormatter formatter, Locale locale, String domain, String key, Object[] arguments)Constructs a MalformedByteSequenceException with the given
parameters which may be passed to an error reporter to
generate a localized string for this exception.
//
// Constructors
//
fFormatter = formatter;
fLocale = locale;
fDomain = domain;
fKey = key;
fArguments = arguments;
|
Methods Summary |
---|
public java.lang.Object[] | getArguments()Returns the replacement arguments for the error
message or null if none exist.
return fArguments;
| public java.lang.String | getDomain()Returns the error domain of the error message.
return fDomain;
| public java.lang.String | getKey()Returns the key of the error message.
return fKey;
| public java.lang.String | getMessage()Returns the localized message for this exception.
if (fMessage == null) {
fMessage = fFormatter.formatMessage(fLocale, fKey, fArguments);
// The references to the message formatter and locale
// aren't needed anymore so null them.
fFormatter = null;
fLocale = null;
}
return fMessage;
|
|