Class ConvertAbbyyToAlto

java.lang.Object
io.goobi.viewer.controller.ConvertAbbyyToAlto

public class ConvertAbbyyToAlto extends Object
Utility class for converting ABBYY FineReader recognition output to ALTO XML format.
  • Constructor Details

    • ConvertAbbyyToAlto

      public ConvertAbbyyToAlto()
  • Method Details

    • convert

      public org.jdom2.Element convert(File input) throws org.jdom2.JDOMException, IOException
      convert.
      Parameters:
      input - ABBYY XML file to convert
      Returns:
      the root ALTO XML element produced from the ABBYY input file
      Throws:
      org.jdom2.JDOMException - if any.
      IOException - if any.
    • convert

      public org.jdom2.Element convert(org.jdom2.Document abbyyDoc)
      convert.
      Parameters:
      abbyyDoc - parsed ABBYY XML document to convert
      Returns:
      the root ALTO XML element produced from the ABBYY document
    • main

      public static void main(String[] args) throws IOException, org.jdom2.JDOMException
      main.
      Parameters:
      args - command-line arguments: input path, output path
      Throws:
      IOException - if any.
      org.jdom2.JDOMException - if any.
    • getInputfilename

      public String getInputfilename()
      Getter for the field inputfilename.
      Returns:
      the name of the ABBYY input file
    • setInputfilename

      public void setInputfilename(String inputfilename)
      Setter for the field inputfilename.
      Parameters:
      inputfilename - name of the ABBYY input file
    • getCreationtime

      public LocalDateTime getCreationtime()
      Getter for the field creationtime.
      Returns:
      the document creation timestamp embedded in the ALTO header
    • setCreationtime

      public void setCreationtime(LocalDateTime creationtime)
      Setter for the field creationtime.
      Parameters:
      creationtime - document creation timestamp to embed in ALTO header