Package writer2latex.bibtex
Class BibTeXDocument
- java.lang.Object
-
- writer2latex.bibtex.BibTeXDocument
-
- All Implemented Interfaces:
OutputFile
public class BibTeXDocument extends java.lang.Object implements OutputFile
Class representing a BibTeX document.
-
-
Constructor Summary
Constructors Constructor Description BibTeXDocument(java.lang.String sName, boolean bIsMaster)Constructs a new BibTeX Document.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(java.lang.String sIdentifier)java.lang.StringgetExportName(java.lang.String sIdentifier)static java.lang.StringgetFieldName(int nField)Return BibTeX name of fieldjava.lang.StringgetFileName()Returns theDocumentname with file extension.java.lang.StringgetMIMEType()Get the MIME type of theOutputFile.java.lang.StringgetName()Returns theDocumentname with no file extension.booleanisMasterDocument()Test whether this document is part of the main document flow (master documents) or an auxiliary documentvoidput(BibMark entry)voidwrite(java.io.OutputStream os)Writes out theDocumentcontent to the specifiedOutputStream.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the
Documentname with no file extension.- Returns:
- The
Documentname with no file extension.
-
getFileName
public java.lang.String getFileName()
Returns the
Documentname with file extension.- Specified by:
getFileNamein interfaceOutputFile- Returns:
- The
Documentname with file extension.
-
getMIMEType
public java.lang.String 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
-
write
public void write(java.io.OutputStream os) throws java.io.IOExceptionWrites out the
Documentcontent 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:
writein interfaceOutputFile- Parameters:
os-OutputStreamto write out theDocumentcontent.- Throws:
java.io.IOException- If any I/O error occurs.
-
getFieldName
public static final java.lang.String getFieldName(int nField)
Return BibTeX name of field
-
containsKey
public boolean containsKey(java.lang.String sIdentifier)
-
put
public void put(BibMark entry)
-
getExportName
public java.lang.String getExportName(java.lang.String sIdentifier)
-
-