Interface Document

All Superinterfaces:
OutputFile
All Known Implementing Classes:
BibTeXDocument, BinaryGraphicsDocument, DOMDocument, LaTeXDocument, NewDOMDocument, OfficeDocument, XhtmlDocument

public interface Document extends OutputFile

A Document represents any Document to be converted and the resulting Document from any conversion.

Author:
Herbie Ong
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Document name with no file extension.
    void
    Reads the content from the InputStream into the Document.

    Methods inherited from interface writer2latex.api.OutputFile

    getFileName, write
  • Method Details

    • read

      void read(InputStream is) throws IOException

      Reads the content from the InputStream into the Document.

      This method may not be thread-safe. Implementations may or may not synchronize this method. User code (i.e. caller) must make sure that calls to this method are thread-safe.

      Parameters:
      is - InputStream to read in the Document content.
      Throws:
      IOException - If any I/O error occurs.
    • getName

      String getName()
      Returns the Document name with no file extension.
      Returns:
      The Document name with no file extension.