|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.spatial.util.HandlerImpl
public class HandlerImpl
Default implementations of the ErrorHandler and LogHandler interfaces.
The ErrorHandler has the following behavior:
ErrorHandler| Constructor Summary | |
|---|---|
HandlerImpl()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the LogHandler and free all associated resources. |
void |
fatalError(java.lang.Exception exception)
Receive notification of a non-recoverable error. |
void |
flush()
Flush any buffered output. |
java.io.Writer |
getWriter()
Sets the log writer where the log records are written. |
java.lang.Exception |
recoverableError(java.lang.Exception exception)
Receives notification of a recoverable error and returns the argument. |
void |
setWriter(java.io.Writer writer)
Sets the log writer where the log records are written. |
java.lang.Exception |
warning(java.lang.Exception exception)
Receive notification of a warning. |
void |
write(com.ibm.spatial.util.LogRecord record)
Write a LogRecord. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HandlerImpl()
| Method Detail |
|---|
public java.lang.Exception recoverableError(java.lang.Exception exception)
recoverableError in interface ErrorHandlerexception - The recoverable error information encapsulated in a
SpatialException.
SpatialExceptionpublic void fatalError(java.lang.Exception exception)
fatalError in interface ErrorHandlerexception - The fatal error information encapsulated in a
SpatialException or RuntimeException.SpatialExceptionpublic java.lang.Exception warning(java.lang.Exception exception)
warning in interface ErrorHandlerexception - The warning information encapsulated in a
SpatialException.
SpatialExceptionpublic void write(com.ibm.spatial.util.LogRecord record)
The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
The LogHandler is responsible for formatting the message.
write in interface LogHandlerrecord - description of the log eventpublic void flush()
flush in interface LogHandlerpublic void close()
The close method will perform a flush and then close the LogHandler. After close has been called this LogHandler should no longer be used. Method calls may either be silently ignored or may throw runtime exceptions.
close in interface LogHandlerpublic void setWriter(java.io.Writer writer)
writer - the log writer objectpublic java.io.Writer getWriter()
writer - the log writer object
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||