public final class SavotWriter
extends java.lang.Object
VOTable document generation from memory
| Constructor | Description |
|---|---|
SavotWriter() |
Public constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
enableAttributeEntities(boolean entities) |
Enable or disable Attribute entities mapping
|
void |
enableElementEntities(boolean entities) |
Enable or disable Element entities mapping
|
void |
enableEntities(boolean entities) |
Enable or disable Attribute and Element entities mapping
|
java.lang.String |
encodeAttribute(java.lang.String src) |
Encode special characters to entities
|
java.lang.String |
encodeElement(java.lang.String src) |
Encode special characters to entities
|
void |
generateDocument(SavotVOTable votable) |
Generates a VOTable XML document corresponding to the internal model The
result is sent to the standard output
|
void |
generateDocument(SavotVOTable votable,
java.io.OutputStream stream) |
Generates a VOTable XML document corresponding to the internal model
|
void |
generateDocument(SavotVOTable votable,
java.lang.String file) |
Generates a VOTable XML document corresponding to the internal model
|
void |
generateDocument(SavotVOTable votable,
java.lang.String file,
java.io.OutputStream stream) |
Generates a VOTable XML document corresponding to the internal model
|
void |
initStream(java.io.OutputStream stream) |
Init the Stream for the output
|
void |
initStream(java.io.Writer writer) |
Init the Stream for the output using the given Writer
|
void |
initStream(java.lang.String file) |
Init the Stream for the output
|
void |
setStyleSheet(java.lang.String href) |
Set a stylesheet Also possible with setTop1
|
void |
setTop1(java.lang.String top1) |
Change the default XML document head Default value
|
void |
writeBinary(SavotBinary binary) |
Write a BINARY element
|
void |
writeComment(java.lang.String comment) |
Write a comment
|
void |
writeCoosys(CoosysSet coosysSet) |
Write a COOSYS set
|
void |
writeDataBegin() |
Write a DATA begin
|
void |
writeDataEnd() |
Write a DATA end
|
void |
writeDescription(java.lang.String description) |
Write a description
|
void |
writeDocumentEnd() |
Write a VOTable XML end
|
void |
writeDocumentHead(SavotVOTable votable) |
Write a VOTable XML head
|
void |
writeField(FieldSet fieldSet) |
Write a FIELD set
|
void |
writeFieldRef(FieldRefSet fieldRefSet) |
Write a FIELD set
|
void |
writeFits(SavotFits fits) |
Write a FITS element
|
void |
writeGroup(GroupSet groupSet) |
Write a GROUP set
|
void |
writeInfo(InfoSet infoSet) |
Write an INFO set
|
void |
writeLink(LinkSet linkSet) |
Write a LINK set
|
void |
writeMax(SavotMax max) |
Write a MAX element
|
void |
writeMin(SavotMin min) |
Write a MIN element
|
void |
writeOption(OptionSet optionSet) |
Write an OPTION set
|
void |
writeParam(ParamSet params) |
Write a PARAM set
|
void |
writeParamRef(ParamRefSet refparams) |
Write a PARAMref set
|
void |
writeResource(ResourceSet resourceset) |
Write a RESOURCE set
|
void |
writeResourceBegin(SavotResource resource) |
Write a RESOURCE begin
|
void |
writeResourceEnd() |
Write a RESOURCE end
|
void |
writeStream(SavotStream stream) |
Write a STREAM element
|
void |
writeTableBegin(SavotTable table) |
Write a TABLE begin
|
void |
writeTableDataBegin() |
Write a TABLEDATA begin
|
void |
writeTableDataEnd() |
Write a TABLEDATA end
|
void |
writeTableEnd() |
Write a TABLE end
|
void |
writeTR(SavotTR tr) |
Write a TR
|
void |
writeValues(SavotValues values) |
Write a VALUES element
|
public void setTop1(java.lang.String top1)
top1 - public void setStyleSheet(java.lang.String href)
href - public void enableAttributeEntities(boolean entities)
entities - true if Attribute entities are taken into accountpublic void enableElementEntities(boolean entities)
entities - true if Element entities are taken into accountpublic void enableEntities(boolean entities)
entities - true if all entities are taken into accountpublic java.lang.String encodeAttribute(java.lang.String src)
src - public java.lang.String encodeElement(java.lang.String src)
src - public void generateDocument(SavotVOTable votable) throws java.io.IOException
votable - object corresponding to the savot internal modeljava.io.IOExceptionpublic void generateDocument(SavotVOTable votable, java.io.OutputStream stream) throws java.io.IOException
votable - object corresponding to the savot internal modelstream - the result is sent to this streamjava.io.IOExceptionpublic void generateDocument(SavotVOTable votable, java.lang.String file) throws java.io.IOException
votable - object corresponding to the savot internal modelfile - is sent to this filejava.io.IOExceptionpublic void generateDocument(SavotVOTable votable, java.lang.String file, java.io.OutputStream stream) throws java.io.IOException
votable - SavotVOTablefile - Stringstream - OutputStreamjava.io.IOExceptionpublic void initStream(java.lang.String file)
throws java.io.IOException
file - Stringjava.io.IOExceptionpublic void initStream(java.io.OutputStream stream)
throws java.io.IOException
stream - OutputStreamjava.io.IOExceptionpublic void initStream(java.io.Writer writer)
writer - writer implementation to write intopublic void writeComment(java.lang.String comment)
throws java.io.IOException
comment - Stringjava.io.IOExceptionpublic void writeDescription(java.lang.String description)
throws java.io.IOException
description - java.io.IOExceptionpublic void writeDocumentHead(SavotVOTable votable) throws java.io.IOException
votable - java.io.IOExceptionpublic void writeDocumentEnd()
throws java.io.IOException
java.io.IOExceptionpublic void writeCoosys(CoosysSet coosysSet) throws java.io.IOException
coosysSet - java.io.IOExceptionpublic void writeParam(ParamSet params) throws java.io.IOException
params - java.io.IOExceptionpublic void writeParamRef(ParamRefSet refparams) throws java.io.IOException
refparams - java.io.IOExceptionpublic void writeLink(LinkSet linkSet) throws java.io.IOException
linkSet - java.io.IOExceptionpublic void writeInfo(InfoSet infoSet) throws java.io.IOException
infoSet - java.io.IOExceptionpublic void writeField(FieldSet fieldSet) throws java.io.IOException
fieldSet - java.io.IOExceptionpublic void writeFieldRef(FieldRefSet fieldRefSet) throws java.io.IOException
fieldRefSet - java.io.IOExceptionpublic void writeStream(SavotStream stream) throws java.io.IOException
stream - java.io.IOExceptionpublic void writeBinary(SavotBinary binary) throws java.io.IOException
binary - java.io.IOExceptionpublic void writeValues(SavotValues values) throws java.io.IOException
values - java.io.IOExceptionpublic void writeFits(SavotFits fits) throws java.io.IOException
fits - java.io.IOExceptionpublic void writeMin(SavotMin min) throws java.io.IOException
min - java.io.IOExceptionpublic void writeMax(SavotMax max) throws java.io.IOException
max - java.io.IOExceptionpublic void writeOption(OptionSet optionSet) throws java.io.IOException
optionSet - java.io.IOExceptionpublic void writeGroup(GroupSet groupSet) throws java.io.IOException
groupSet - java.io.IOExceptionpublic void writeTableBegin(SavotTable table) throws java.io.IOException
table - SavotTablejava.io.IOExceptionpublic void writeTableEnd()
throws java.io.IOException
java.io.IOExceptionpublic void writeResourceBegin(SavotResource resource) throws java.io.IOException
resource - SavotResourcejava.io.IOExceptionpublic void writeResourceEnd()
throws java.io.IOException
java.io.IOExceptionpublic void writeTableDataBegin()
throws java.io.IOException
java.io.IOExceptionpublic void writeTableDataEnd()
throws java.io.IOException
java.io.IOExceptionpublic void writeDataBegin()
throws java.io.IOException
java.io.IOExceptionpublic void writeDataEnd()
throws java.io.IOException
java.io.IOExceptionpublic void writeTR(SavotTR tr) throws java.io.IOException
tr - java.io.IOExceptionpublic void writeResource(ResourceSet resourceset) throws java.io.IOException
resourceset - ResourceSetjava.io.IOException