Class DeTeXtive

java.lang.Object
org.openoffice.da.comp.writer4latex.DeTeXtive

public class DeTeXtive extends Object
This class analyzes a stream and detects if it is a TeX stream. Currently it is able to identify LaTeX and XeLaTeX (ConTeXt and plain TeX may be added later).
  • Constructor Details

    • DeTeXtive

      public DeTeXtive()
      Construct a new DeTeXtive
  • Method Details

    • deTeXt

      public String deTeXt(InputStream is) throws IOException
      Detect the format of a given stream
      Parameters:
      is - the input stream
      Returns:
      a string representing the detected format; null if the format is unknown. Currently the values "LaTeX", "XeLaTeX" are supported.
      Throws:
      IOException - if we fail to read the stream