|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.healthmarketscience.jackcess.ReplacementErrorHandler
public class ReplacementErrorHandler
Simple implementation of an ErrorHandler which always returns the configured object.
| Constructor Summary | |
|---|---|
ReplacementErrorHandler()
Constructs a ReplacementErrorHandler which replaces all errored values with null. |
|
ReplacementErrorHandler(Object replacement)
Constructs a ReplacementErrorHandler which replaces all errored values with the given Object. |
|
| Method Summary | |
|---|---|
Object |
handleRowError(Column column,
byte[] columnData,
Table.RowState rowState,
Exception error)
Handles an error encountered while reading a column of data from a Table row. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplacementErrorHandler()
null.
public ReplacementErrorHandler(Object replacement)
| Method Detail |
|---|
public Object handleRowError(Column column,
byte[] columnData,
Table.RowState rowState,
Exception error)
throws IOException
ErrorHandler
handleRowError in interface ErrorHandlercolumn - the info for the column being readcolumnData - the actual column data for the column being read (which
may be null depending on when the exception
was thrown during the reading process)rowState - the current row state for the callererror - the error that was encountered
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||