public class BibTeXDocument extends java.lang.Object implements OutputFile
| Constructor and Description |
|---|
BibTeXDocument(java.lang.String sName,
boolean bIsMaster,
OfficeReader ofr)
Constructs a new BibTeX Document based on an office document
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMath()
Test whether this document contains mathematical formulas
|
java.lang.String |
getExportName(java.lang.String sIdentifier)
Get export name for an identifier
|
java.lang.String |
getFileName()
Returns the file name of the
OutputFile. |
java.lang.String |
getMIMEType()
Get the MIME type of the
OutputFile. |
java.lang.String |
getName()
Returns the document name without file extension
|
boolean |
isEmpty()
Test whether or not this BibTeX document contains any entries
|
boolean |
isMasterDocument()
Test whether this document is part of the main document flow (master documents) or
an auxiliary document
|
void |
write(java.io.OutputStream os)
Writes the
OutputFile to an OutputStream. |
public BibTeXDocument(java.lang.String sName,
boolean bIsMaster,
OfficeReader ofr)
sName - The name of the documentbIsMaster - is this a master document?ofr - the office documentpublic boolean isEmpty()
public java.lang.String getExportName(java.lang.String sIdentifier)
sIdentifier - the identifierpublic java.lang.String getName()
public java.lang.String getFileName()
OutputFileOutputFile. This includes
the file extension and may also include a relative path, always using
/ as separator.getFileName in interface OutputFileOutputFilepublic java.lang.String getMIMEType()
OutputFileOutputFile.getMIMEType in interface OutputFilepublic boolean isMasterDocument()
OutputFileisMasterDocument in interface OutputFilepublic boolean containsMath()
OutputFilecontainsMath in interface OutputFilepublic void write(java.io.OutputStream os)
throws java.io.IOException
OutputFileOutputFile to an OutputStream.write in interface OutputFileos - OutputStream to which the content should be writtenjava.io.IOException - if any I/O error occurs