Interface DocumentParser


public interface DocumentParser
Defines the interface for parsing an InputStream into a Document. Different document types require specialized parsing logic.
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(InputStream inputStream)
    Parses an InputStream into a Document.
  • Method Details

    • parse

      Document parse(InputStream inputStream)
      Parses an InputStream into a Document. The specific implementation of this method will depend on the type of the document being parsed.
      Parameters:
      inputStream - The InputStream that contains the content of the document.
      Returns:
      The parsed Document.