|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceCatalogWriter
A writer that converts source catalogs to a text format.
CVS Info:
$Revision: 714 $ |
$Date: 2007-06-13 10:36:05 -0600 (Wed, 13 Jun 2007) $ |
$Author: btruitt $ |
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 |
getSuccess()
Returns true if the most recently read data caused no parsing errors. |
boolean |
write(SourceCatalog cat,
OutputStream out)
Writes the sources in cat to the OutputStream out . |
boolean |
write(SourceCatalog cat,
OutputStream out,
FileCompressionFormat format)
Writes the sources in cat to the OutputStream out . |
boolean |
write(SourceCatalog cat,
String fileName)
Writes the sources in cat to a file |
boolean |
write(SourceCatalog cat,
Writer out)
Writes the sources in cat to the Writer out . |
Method Detail |
---|
boolean write(SourceCatalog cat, String fileName)
cat
to a file
fileName
- the name of a file.cat
- the catalog of sources to output
write(SourceCatalog, Writer)
boolean write(SourceCatalog cat, Writer out)
cat
to the Writer out
.
out
- the destination of the text representation.cat
- the catalog of sources to output
NullPointerException
- if cat
is NULL.getErrors()
boolean write(SourceCatalog cat, OutputStream out)
cat
to the OutputStream out
.
out
- the destination of the text representation.cat
- the catalog of sources to output
write(SourceCatalog, OutputStream, FileCompressionFormat)
boolean write(SourceCatalog cat, OutputStream out, FileCompressionFormat format)
cat
to the OutputStream out
. If
format
is specified, non-null, and not equal to UNCOMPRESSED
the data should be compressed before being written to out
.
cat
- the source of sources that can be written out in a text format.out
- the OutputStream to which the sources should be written.format
- determines what kind of compression, if any, that should be used.
getErrors()
boolean getSuccess()
SourceCatalog
created
by this reader may be perfectly fine even if this method
returns false.
StringBuilder getErrors()
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.
String getError(int index)
index
th error found during the most
recent write.
index
- a positional value >= zero and < getErrorCount()
.
index
th error found during the most
recent write.getErrors()
int getErrorCount()
getErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |