Package writer2latex.bibtex
Class BibTeXDocument
java.lang.Object
writer2latex.bibtex.BibTeXDocument
- All Implemented Interfaces:
OutputFile
Class representing a BibTeX document
-
Constructor Summary
ConstructorsConstructorDescriptionBibTeXDocument(String sName, boolean bIsMaster, OfficeReader ofr) Constructs a new BibTeX Document based on an office document -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest whether this document contains mathematical formulasgetExportName(String sIdentifier) Get export name for an identifierReturns the file name of theOutputFile.Get the MIME type of theOutputFile.getName()Returns the document name without file extensionbooleanisEmpty()Test whether or not this BibTeX document contains any entriesbooleanTest whether this document is part of the main document flow (master documents) or an auxiliary documentvoidwrite(OutputStream os) Writes theOutputFileto anOutputStream.
-
Constructor Details
-
BibTeXDocument
Constructs a new BibTeX Document based on an office document- Parameters:
sName- The name of the documentbIsMaster- is this a master document?ofr- the office document
-
-
Method Details
-
isEmpty
public boolean isEmpty()Test whether or not this BibTeX document contains any entries- Returns:
- true if there is one or more entries in the document
-
getExportName
Get export name for an identifier- Parameters:
sIdentifier- the identifier- Returns:
- the export name
-
getName
Returns the document name without file extension- Returns:
- the document name without file extension
-
getFileName
Description copied from interface:OutputFileReturns the file name of theOutputFile. This includes the file extension and may also include a relative path, always using / as separator.- Specified by:
getFileNamein interfaceOutputFile- Returns:
- the file name of this
OutputFile
-
getMIMEType
Description copied from interface:OutputFileGet the MIME type of theOutputFile.- Specified by:
getMIMETypein interfaceOutputFile- Returns:
- string representation of the MIME type
-
isMasterDocument
public boolean isMasterDocument()Description copied from interface:OutputFileTest whether this document is part of the main document flow (master documents) or an auxiliary document- Specified by:
isMasterDocumentin interfaceOutputFile- Returns:
- true if this document is a master document
-
containsMath
public boolean containsMath()Description copied from interface:OutputFileTest whether this document contains mathematical formulas- Specified by:
containsMathin interfaceOutputFile- Returns:
- true if the document contains formulas
-
write
Description copied from interface:OutputFileWrites theOutputFileto anOutputStream.- Specified by:
writein interfaceOutputFile- Parameters:
os-OutputStreamto which the content should be written- Throws:
IOException- if any I/O error occurs
-