Class DeTeXtive
- java.lang.Object
-
- org.openoffice.da.comp.writer4latex.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
-
-
-
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
-
-