public abstract class Logging
extends java.lang.Object
Constructor and Description |
---|
Logging() |
Modifier and Type | Method and Description |
---|---|
protected void |
encodingError(java.lang.String message)
Reports an encoding error, when an XML file is read with the wrong
character encoding.
|
protected abstract boolean |
endOfStream()
Reports whether the end of the input or output stream has been
reached.
|
protected abstract java.lang.String |
getContext()
Returns the XML context in which any kind of error was detected.
|
protected abstract int |
getLineNumber()
Returns the current line number reached during reading or writing.
|
protected void |
semanticError(java.lang.String message)
Reports model-building error, when the model constraints are violated.
|
protected void |
syntaxError(java.lang.String message)
Reports an XML syntax error, when badly-formed XML syntax is detected.
|
protected void encodingError(java.lang.String message) throws java.io.UnsupportedEncodingException
message
- the error message.java.io.UnsupportedEncodingException
- always.protected void syntaxError(java.lang.String message) throws SyntaxError, java.io.EOFException
message
- the error message.java.io.EOFException
- if the end of the stream was reached prematurely.SyntaxError
- if a syntax error was detected before the end of
the stream.protected void semanticError(java.lang.String message) throws SemanticError
message
- the error message.SemanticError
- always.protected abstract java.lang.String getContext()
protected abstract int getLineNumber()
protected abstract boolean endOfStream()