Package files

Class PdfFile

  • All Implemented Interfaces:
    ParseableFile<java.lang.String>

    public class PdfFile
    extends java.lang.Object
    implements ParseableFile<java.lang.String>
    The main goal of this class is to get the content inside the Pdf, in addition to represent a PdfFile, to make it more explicit.
    Since:
    1.0 SNAPSHOT
    Author:
    Arthur Brenno
    • Constructor Summary

      Constructors 
      Constructor Description
      PdfFile​(@NotNull java.nio.file.Path path)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContent()
      This method returns the content of the pdf.
      • Methods inherited from class java.lang.Object

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

      • PdfFile

        public PdfFile​(@NotNull
                       @NotNull java.nio.file.Path path)
                throws java.lang.IllegalArgumentException
        Constructor.
        Parameters:
        path - to the pdf file.
        Throws:
        java.lang.IllegalArgumentException - if the file is not a pdf.
    • Method Detail

      • getContent

        public java.lang.String getContent()
                                    throws java.io.IOException
        This method returns the content of the pdf.
        Specified by:
        getContent in interface ParseableFile<java.lang.String>
        Returns:
        String with all the content of the PdfFile instance.
        Throws:
        java.io.IOException - if the file is not found.