Interface DocumentSource

  • All Implemented Interfaces:

    
    public interface DocumentSource
    
                        

    Defines the interface for a Document source. Documents can be loaded from various sources such as the file system, HTTP, FTP, etc.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract InputStream inputStream() Provides an InputStream to read the content of the document.
      abstract Metadata metadata() Returns the metadata associated with the source of the document.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • inputStream

         abstract InputStream inputStream()

        Provides an InputStream to read the content of the document. This method can be implemented to read from various sources like a local file or a network connection.

        Returns:

        An InputStream from which the document content can be read.

      • metadata

         abstract Metadata metadata()

        Returns the metadata associated with the source of the document. This could include details such as the source location, date of creation, owner, etc.

        Returns:

        A Metadata object containing information associated with the source of the document.