public abstract class AbortableHSSFListener extends java.lang.Object implements HSSFListener
HSSFEventFactory
,
HSSFRequest
,
HSSFUserException
Constructor and Description |
---|
AbortableHSSFListener() |
Modifier and Type | Method and Description |
---|---|
abstract short |
abortableProcessRecord(Record record)
Process an HSSF Record.
(处理 HSSF 记录。)
|
void |
processRecord(Record record)
This method, inherited from HSSFListener is implemented as a stub.
(从 HSSFListener 继承的这个方法被实现为一个存根。)
|
public void processRecord(Record record)
processRecord
in interface
HSSFListener
(接口 HSSFListener 中的 processRecord)
record
- the record to be processed
(record - 要处理的记录)
public abstract short abortableProcessRecord(Record record) throws HSSFUserException
HSSFEventFactory
with the code being passed back by its abortable process events methods. Error termination can be done by throwing the HSSFUserException. Note that HSSFEventFactory will not call the inherited process
(处理 HSSF 记录。当 HSSF 文件中出现记录时调用。提供两个用于停止处理 HSSF 文件的选项。返回值通过用户定义的结果代码提供了一种非错误终止的方法。必须返回零值才能继续处理,任何其他值都将由 HSSFEventFactory 停止处理,代码由其可中止的进程事件方法传回。可以通过抛出 HSSFUserException 来终止错误。注意HSSFEventFactory不会调用继承的进程)
record
- the record to be processed
(record - 要处理的记录)
HSSFUserException
- User code can throw this to abort file processing by HSSFEventFactory and return diagnostic information.
(HSSFUserException - 用户代码可以抛出此异常以中止 HSSFEventFactory 的文件处理并返回诊断信息。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.