Class DeTeXtive


  • public class DeTeXtive
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      DeTeXtive()
      Construct a new DeTeXtive
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String deTeXt​(java.io.InputStream is)
      Detect the format of a given stream
      • Methods inherited from class java.lang.Object

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

      • DeTeXtive

        public DeTeXtive()
        Construct a new DeTeXtive
    • Method Detail

      • deTeXt

        public java.lang.String deTeXt​(java.io.InputStream is)
                                throws java.io.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:
        java.io.IOException - if we fail to read the stream