Package writer2latex.bibtex
Class BibTeXDocument
java.lang.Object
writer2latex.bibtex.BibTeXDocument
- All Implemented Interfaces:
OutputFile,Document
Class representing a BibTeX document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String sIdentifier) getExportName(String sIdentifier) static final StringgetFieldName(int nField) Return BibTeX name of fieldReturns theDocumentname with file extension.getName()Returns theDocumentname with no file extension.voidvoidread(InputStream is) This method is supposed to readbytedata from the InputStream.voidwrite(OutputStream os) Writes out theDocumentcontent to the specifiedOutputStream.
-
Constructor Details
-
BibTeXDocument
Constructs a new BibTeX Document.
This new document is empty. Bibliographic data must added using the
putmethod.- Parameters:
sName- The name of theBibTeXDocument.
-
-
Method Details
-
read
This method is supposed to read
bytedata from the InputStream. Currently it does nothing, since we don't need it.- Specified by:
readin interfaceDocument- Parameters:
is- InputStream containing a BibTeX data file.- Throws:
IOException- In case of any I/O errors.
-
getName
Returns the
Documentname with no file extension. -
getFileName
Returns the
Documentname with file extension.- Specified by:
getFileNamein interfaceOutputFile- Returns:
- The
Documentname with file extension.
-
write
Writes 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:
IOException- If any I/O error occurs.
-
getFieldName
Return BibTeX name of field
-
containsKey
-
put
-
getExportName
-