Interface DocumentParser

  • All Superinterfaces:
    java.util.function.Function<java.lang.String,​Document>
    All Known Implementing Classes:
    OpenNLPDocumentParser

    public interface DocumentParser
    extends java.util.function.Function<java.lang.String,​Document>
    Parses strings into Documents
    Since:
    5.2
    Version:
    5.2
    Author:
    Pedro Oliveira
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default Document apply​(java.io.Reader theReader)
      Consumes and closes the Reader, transforming its contents into a Document
      • Methods inherited from interface java.util.function.Function

        andThen, apply, compose
    • Method Detail

      • apply

        default Document apply​(java.io.Reader theReader)
                        throws java.io.IOException
        Consumes and closes the Reader, transforming its contents into a Document
        Throws:
        java.io.IOException