public class HSSFEventFactory
extends java.lang.Object
Constructor and Description |
---|
HSSFEventFactory()
Creates a new instance of HSSFEventFactory
|
Modifier and Type | Method and Description |
---|---|
short |
abortableProcessEvents(HSSFRequest req, java.io.InputStream in)
Processes a DocumentInputStream into essentially Record events.
(将 DocumentInputStream 处理为本质上的 Record 事件。)
|
short |
abortableProcessWorkbookEvents(HSSFRequest req, DirectoryNode dir)
Processes a file into essentially record events.
(将文件处理为实质上记录事件。)
|
short |
abortableProcessWorkbookEvents(HSSFRequest req, POIFSFileSystem fs)
Processes a file into essentially record events.
(将文件处理为实质上记录事件。)
|
void |
processEvents(HSSFRequest req, java.io.InputStream in)
Processes a DocumentInputStream into essentially Record events.
(将 DocumentInputStream 处理为本质上的 Record 事件。)
|
void |
processWorkbookEvents(HSSFRequest req, DirectoryNode dir)
Processes a file into essentially record events.
(将文件处理为实质上记录事件。)
|
void |
processWorkbookEvents(HSSFRequest req, POIFSFileSystem fs)
Processes a file into essentially record events.
(将文件处理为实质上记录事件。)
|
public HSSFEventFactory()
public void processWorkbookEvents(HSSFRequest req, POIFSFileSystem fs) throws java.io.IOException
req
- an Instance of HSSFRequest which has your registered listeners
(req - 一个 HSSFRequest 实例,其中包含您注册的侦听器)
fs
- a POIFS filesystem containing your workbook
(fs - 包含您的工作簿的 POIFS 文件系统)
java.io.IOException
- if the workbook contained errors
(java.io.IOException - 如果工作簿包含错误)
public void processWorkbookEvents(HSSFRequest req, DirectoryNode dir) throws java.io.IOException
req
- an Instance of HSSFRequest which has your registered listeners
(req - 一个 HSSFRequest 实例,其中包含您注册的侦听器)
dir
- a DirectoryNode containing your workbook
(dir - 包含您的工作簿的 DirectoryNode)
java.io.IOException
- if the workbook contained errors
(java.io.IOException - 如果工作簿包含错误)
public short abortableProcessWorkbookEvents(HSSFRequest req, POIFSFileSystem fs) throws java.io.IOException, HSSFUserException
req
- an Instance of HSSFRequest which has your registered listeners
(req - 一个 HSSFRequest 实例,其中包含您注册的侦听器)
fs
- a POIFS filesystem containing your workbook
(fs - 包含您的工作簿的 POIFS 文件系统)
HSSFUserException
- if the processing should be aborted
(HSSFUserException - 如果应该中止处理)
java.io.IOException
- if the workbook contained errors
(java.io.IOException - 如果工作簿包含错误)
public short abortableProcessWorkbookEvents(HSSFRequest req, DirectoryNode dir) throws java.io.IOException, HSSFUserException
req
- an Instance of HSSFRequest which has your registered listeners
(req - 一个 HSSFRequest 实例,其中包含您注册的侦听器)
dir
- a DirectoryNode containing your workbook
(dir - 包含您的工作簿的 DirectoryNode)
HSSFUserException
- if the processing should be aborted
(HSSFUserException - 如果应该中止处理)
java.io.IOException
- if the workbook contained errors
(java.io.IOException - 如果工作簿包含错误)
public void processEvents(HSSFRequest req, java.io.InputStream in)
AbortableHSSFListener
causes a halt to processing during this call the method will return just as with
abortableProcessEvents
, but no user code or
HSSFUserException
will be passed back.
(将 DocumentInputStream 处理为本质上的 Record 事件。如果 AbortableHSSFListener 在此调用期间导致处理停止,则该方法将与 abortableProcessEvents 一样返回,但不会传回任何用户代码或 HSSFUserException。)
req
- an Instance of HSSFRequest which has your registered listeners
(req - 一个 HSSFRequest 实例,其中包含您注册的侦听器)
in
- a DocumentInputStream obtained from POIFS's POIFSFileSystem object
(in - 从 POIFS 的 POIFSFileSystem 对象获得的 DocumentInputStream)
POIFSFileSystem.createDocumentInputStream(String)
public short abortableProcessEvents(HSSFRequest req, java.io.InputStream in) throws HSSFUserException
req
- an Instance of HSSFRequest which has your registered listeners
(req - 一个 HSSFRequest 实例,其中包含您注册的侦听器)
in
- a DocumentInputStream obtained from POIFS's POIFSFileSystem object
(in - 从 POIFS 的 POIFSFileSystem 对象获得的 DocumentInputStream)
HSSFUserException
- if the processing should be aborted
(HSSFUserException - 如果应该中止处理)
POIFSFileSystem.createDocumentInputStream(String)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.