|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwriter2latex.bibtex.BibTeXDocument
public class BibTeXDocument
Class representing a BibTeX document.
Constructor Summary | |
---|---|
BibTeXDocument(java.lang.String sName)
Constructs a new BibTeX Document. |
Method Summary | |
---|---|
boolean |
containsKey(java.lang.String sIdentifier)
|
java.lang.String |
getExportName(java.lang.String sIdentifier)
|
static java.lang.String |
getFieldName(int nField)
Return BibTeX name of field |
java.lang.String |
getFileName()
Returns the Document name with file extension. |
java.lang.String |
getName()
Returns the Document name with no file extension. |
void |
put(BibMark entry)
|
void |
read(java.io.InputStream is)
This method is supposed to read byte data from the InputStream. |
void |
write(java.io.OutputStream os)
Writes out the Document content to the specified
OutputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BibTeXDocument(java.lang.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
.Method Detail |
---|
public void read(java.io.InputStream is) throws java.io.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.
java.io.IOException
- In case of any I/O errors.public java.lang.String getName()
Returns the Document
name with no file extension.
getName
in interface Document
Document
name with no file extension.public java.lang.String getFileName()
Returns the Document
name with file extension.
getFileName
in interface OutputFile
Document
name with file extension.public void write(java.io.OutputStream os) throws java.io.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.
java.io.IOException
- If any I/O error occurs.public static final java.lang.String getFieldName(int nField)
Return BibTeX name of field
public boolean containsKey(java.lang.String sIdentifier)
public void put(BibMark entry)
public java.lang.String getExportName(java.lang.String sIdentifier)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |