Class DeTeXtive
java.lang.Object
org.openoffice.da.comp.writer4latex.DeTeXtive
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 -
Method Summary
-
Constructor Details
-
DeTeXtive
public DeTeXtive()Construct a new DeTeXtive
-
-
Method Details
-
deTeXt
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
-