|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.source.parser.AbstractSourceCatalogWriter edu.nrao.sss.model.source.parser.XmlSourceCatalogWriter
public class XmlSourceCatalogWriter
A parser of source catalogs that are expressed in XML.
Version Info:
$Revision: 714 $ |
$Date: 2007-06-13 10:36:05 -0600 (Wed, 13 Jun 2007) $ |
$Author: btruitt $ |
Field Summary |
---|
Fields inherited from class edu.nrao.sss.model.source.parser.AbstractSourceCatalogWriter |
---|
errors, writeWasSuccessful |
Constructor Summary | |
---|---|
XmlSourceCatalogWriter()
|
Method Summary | |
---|---|
String |
getError(int index)
Returns the index th error found during the most
recent write. |
int |
getErrorCount()
Returns the number of errors found during the most recent write. |
StringBuilder |
getErrors()
Returns the combined text of all errors found during the most recent write. |
boolean |
write(SourceCatalog cat,
Writer out)
NOTE: This method closes the incoming Writer! |
Methods inherited from class edu.nrao.sss.model.source.parser.AbstractSourceCatalogWriter |
---|
getSuccess, putError, putError, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlSourceCatalogWriter()
Method Detail |
---|
public boolean write(SourceCatalog cat, Writer out)
write
in interface SourceCatalogWriter
write
in class AbstractSourceCatalogWriter
cat
- the catalog of sources to outputout
- the destination of the text representation.
AbstractSourceCatalogWriter.write(SourceCatalog, Writer)
public StringBuilder getErrors()
SourceCatalogWriter
Note that an "error" is anything unexpected encountered while writing. Not all errors are harmful. The text of each error includes the line number where it occurred and an explanation of what was wrong.
getErrors
in interface SourceCatalogWriter
getErrors
in class AbstractSourceCatalogWriter
SourceCatalogReader.getErrors()
public String getError(int index)
SourceCatalogWriter
index
th error found during the most
recent write.
getError
in interface SourceCatalogWriter
getError
in class AbstractSourceCatalogWriter
index
- a positional value >= zero and < SourceCatalogWriter.getErrorCount()
.
index
th error found during the most
recent write.SourceCatalogReader.getError(int)
public int getErrorCount()
SourceCatalogWriter
getErrorCount
in interface SourceCatalogWriter
getErrorCount
in class AbstractSourceCatalogWriter
SourceCatalogReader.getErrorCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |