writer2latex.bibtex
Class BibTeXDocument
java.lang.Object
writer2latex.bibtex.BibTeXDocument
- Document, OutputFile
public class BibTeXDocument
extends java.lang.Object
Class representing a BibTeX document.
BibTeXDocument(String sName) - Constructs a new BibTeX Document.
This new document is empty.
|
boolean | containsKey(String sIdentifier)
|
String | getExportName(String sIdentifier)
|
static String | getFieldName(int nField) - Return BibTeX name of field
|
String | getFileName() - Returns the
Document name with file extension.
|
String | getName() - Returns the
Document name with no file extension.
|
void | put(BibMark entry)
|
void | read(InputStream is) - This method is supposed to read
byte data from the InputStream.
|
void | write(OutputStream os) - Writes out the
Document content to the specified
OutputStream .
This method may not be thread-safe.
|
BibTeXDocument
public BibTeXDocument(String sName)
Constructs a new BibTeX Document.
This new document is empty. Bibliographic data must added
using the
put
method.
sName
- The name of the BibTeXDocument
.
containsKey
public boolean containsKey(String sIdentifier)
getExportName
public String getExportName(String sIdentifier)
getFieldName
public static final String getFieldName(int nField)
Return BibTeX name of field
getFileName
public String getFileName()
Returns the Document
name with file extension.
- getFileName in interface OutputFile
- The
Document
name with file extension.
getName
public String getName()
Returns the Document
name with no file extension.
- getName in interface Document
- The
Document
name with no file extension.
read
public void read(InputStream is)
throws IOException
This method is supposed to read byte
data from the InputStream.
Currently it does nothing, since we don't need it.
- read in interface Document
is
- InputStream containing a BibTeX data file.
write
public void write(OutputStream os)
throws IOException
Writes out the
Document
content to the specified
OutputStream
.
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.
- write in interface OutputFile
os
- OutputStream
to write out the
Document
content.