writer2latex.bibtex

Class BibTeXDocument

Implemented Interfaces:
Document, OutputFile

public class BibTeXDocument
extends java.lang.Object
implements Document

Class representing a BibTeX document.

Constructor Summary

BibTeXDocument(String sName)
Constructs a new BibTeX Document.

Method Summary

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 docData)
This method is supposed to read byte data from the InputStream.
void
write(OutputStream os)
Writes out the Document content to the specified OutputStream.

Constructor Details

BibTeXDocument

public BibTeXDocument(String sName)
Constructs a new BibTeX Document.

This new document is empty. Bibliographic data must added using the put method.

Parameters:

Method Details

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.
Specified by:
getFileName in interface OutputFile
Returns:
The Document name with file extension.

getName

public String getName()
Returns the Document name with no file extension.
Specified by:
getName in interface Document
Returns:
The Document name with no file extension.

put

public void put(BibMark entry)

read

public void read(InputStream docData)
            throws IOException
This method is supposed to read byte data from the InputStream. Currently it does nothing, since we don't need it.
Specified by:
read in interface Document
Parameters:

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.

Specified by:
write in interface OutputFile
Parameters:
os - OutputStream to write out the Document content.