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) Constructs a new BibTeX Document. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String sIdentifier) getExportName
(String sIdentifier) static final String
getFieldName
(int nField) Return BibTeX name of fieldReturns theDocument
name with file extension.Get the MIME type of theOutputFile
.getName()
Returns theDocument
name with no file extension.boolean
Test whether this document is part of the main document flow (master documents) or an auxiliary documentvoid
void
write
(OutputStream os) Writes out theDocument
content to the specifiedOutputStream
.
-
Constructor Details
-
BibTeXDocument
Constructs a new BibTeX Document.
This new document is empty. Bibliographic data must added using the
put
method.- Parameters:
sName
- The name of theBibTeXDocument
.
-
-
Method Details
-
getName
Returns the
Document
name with no file extension.- Returns:
- The
Document
name with no file extension.
-
getFileName
Returns the
Document
name with file extension.- Specified by:
getFileName
in interfaceOutputFile
- Returns:
- The
Document
name with file extension.
-
getMIMEType
Description copied from interface:OutputFile
Get the MIME type of theOutputFile
.- Specified by:
getMIMEType
in interfaceOutputFile
- Returns:
- string representation of the MIME type
-
isMasterDocument
public boolean isMasterDocument()Description copied from interface:OutputFile
Test whether this document is part of the main document flow (master documents) or an auxiliary document- Specified by:
isMasterDocument
in interfaceOutputFile
- Returns:
- true if this document is a master document
-
write
Writes out the
Document
content to the specifiedOutputStream
.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.
- Specified by:
write
in interfaceOutputFile
- Parameters:
os
-OutputStream
to write out theDocument
content.- Throws:
IOException
- If any I/O error occurs.
-
getFieldName
Return BibTeX name of field
-
containsKey
-
put
-
getExportName
-