Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.io

public Class MalformedByteSequenceException

extends CharConversionException
Class Inheritance
Imports
java.io.CharConversionException, java.util.Locale, com.sun.org.apache.xerces.internal.util.MessageFormatter

Signals that a malformed byte sequence was detected by a java.io.Reader that decodes bytes of a given encoding into characters.

Author
Michael Glavassevich, IBM

Field Summary

Modifier and TypeField and Description
private Object[]
fArguments

replacement arguements for the error message

private String
fDomain

error domain

private MessageFormatter
fFormatter

message formatter

private String
fKey

key for the error message

private Locale
fLocale

locale for error message

private String
fMessage

message text for this message, initially null

pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
MalformedByteSequenceException(MessageFormatter
The MessageFormatter used for building the message text for this exception.
formatter
,
Locale
The Locale for which messages are to be reported.
locale
,
String
The error domain.
domain
,
String
The key of the error message.
key
,
Object[]
The replacement arguments for the error message, if needed.
arguments
)

Constructs a MalformedByteSequenceException with the given parameters which may be passed to an error reporter to generate a localized string for this exception.

Method Summary

Modifier and TypeMethod and Description
public Object[]

Returns:

the replacement arguments for the error message or null if none exist
getArguments
()

Returns the replacement arguments for the error message or null if none exist.

public String

Returns:

the error domain
getDomain
()

Returns the error domain of the error message.

public String

Returns:

the error key of the error message
getKey
()

Returns the key of the error message.

public String

Returns:

the localized message for this exception.
getMessage
()

Overrides java.lang.Throwable.getMessage.

Returns the localized message for this exception.

Field Detail

fArgumentsback to summary
private Object[] fArguments

replacement arguements for the error message

Annotations
@SuppressWarnings:serial
fDomainback to summary
private String fDomain

error domain

fFormatterback to summary
private MessageFormatter fFormatter

message formatter

Annotations
@SuppressWarnings:serial
fKeyback to summary
private String fKey

key for the error message

fLocaleback to summary
private Locale fLocale

locale for error message

fMessageback to summary
private String fMessage

message text for this message, initially null

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.io.CharConversionException.serialVersionUID.

Serialization version.

Constructor Detail

MalformedByteSequenceExceptionback to 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.

Parameters
formatter:MessageFormatter

The MessageFormatter used for building the message text for this exception.

locale:Locale

The Locale for which messages are to be reported.

domain:String

The error domain.

key:String

The key of the error message.

arguments:Object[]

The replacement arguments for the error message, if needed.

Method Detail

getArgumentsback to summary
public Object[] getArguments()

Returns the replacement arguments for the error message or null if none exist.

Returns:Object[]

the replacement arguments for the error message or null if none exist

getDomainback to summary
public String getDomain()

Returns the error domain of the error message.

Returns:String

the error domain

getKeyback to summary
public String getKey()

Returns the key of the error message.

Returns:String

the error key of the error message

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the localized message for this exception.

Returns:String

the localized message for this exception.