接口 DocumentParser
public interface DocumentParser
Defines the interface for parsing an
InputStream into a Document.
Different document types require specialized parsing logic.-
方法概要
-
方法详细资料
-
parse
Parses a givenInputStreaminto aDocument. The specific implementation of this method will depend on the type of the document being parsed.- 参数:
inputStream- TheInputStreamthat contains the content of theDocument.- 返回:
- The parsed
Document. - 抛出:
BlankDocumentException- when the parsedDocumentis blank/empty.
-