public final class SavotWriter
extends java.lang.Object
VOTable document generation from memory
Constructor and Description |
---|
SavotWriter()
Public constructor
|
Modifier and Type | Method and 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.lang.String file)
Init the Stream for the output
|
void |
initStream(java.io.Writer writer)
Init the Stream for the output using the given Writer
|
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.IOException
public 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.IOException
public 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.IOException
public void generateDocument(SavotVOTable votable, java.lang.String file, java.io.OutputStream stream) throws java.io.IOException
votable
- SavotVOTablefile
- Stringstream
- OutputStreamjava.io.IOException
public void initStream(java.lang.String file) throws java.io.IOException
file
- Stringjava.io.IOException
public void initStream(java.io.OutputStream stream) throws java.io.IOException
stream
- OutputStreamjava.io.IOException
public 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.IOException
public void writeDescription(java.lang.String description) throws java.io.IOException
description
- java.io.IOException
public void writeDocumentHead(SavotVOTable votable) throws java.io.IOException
votable
- java.io.IOException
public void writeDocumentEnd() throws java.io.IOException
java.io.IOException
public void writeCoosys(CoosysSet coosysSet) throws java.io.IOException
coosysSet
- java.io.IOException
public void writeParam(ParamSet params) throws java.io.IOException
params
- java.io.IOException
public void writeParamRef(ParamRefSet refparams) throws java.io.IOException
refparams
- java.io.IOException
public void writeLink(LinkSet linkSet) throws java.io.IOException
linkSet
- java.io.IOException
public void writeInfo(InfoSet infoSet) throws java.io.IOException
infoSet
- java.io.IOException
public void writeField(FieldSet fieldSet) throws java.io.IOException
fieldSet
- java.io.IOException
public void writeFieldRef(FieldRefSet fieldRefSet) throws java.io.IOException
fieldRefSet
- java.io.IOException
public void writeStream(SavotStream stream) throws java.io.IOException
stream
- java.io.IOException
public void writeBinary(SavotBinary binary) throws java.io.IOException
binary
- java.io.IOException
public void writeValues(SavotValues values) throws java.io.IOException
values
- java.io.IOException
public void writeFits(SavotFits fits) throws java.io.IOException
fits
- java.io.IOException
public void writeMin(SavotMin min) throws java.io.IOException
min
- java.io.IOException
public void writeMax(SavotMax max) throws java.io.IOException
max
- java.io.IOException
public void writeOption(OptionSet optionSet) throws java.io.IOException
optionSet
- java.io.IOException
public void writeGroup(GroupSet groupSet) throws java.io.IOException
groupSet
- java.io.IOException
public void writeTableBegin(SavotTable table) throws java.io.IOException
table
- SavotTablejava.io.IOException
public void writeTableEnd() throws java.io.IOException
java.io.IOException
public void writeResourceBegin(SavotResource resource) throws java.io.IOException
resource
- SavotResourcejava.io.IOException
public void writeResourceEnd() throws java.io.IOException
java.io.IOException
public void writeTableDataBegin() throws java.io.IOException
java.io.IOException
public void writeTableDataEnd() throws java.io.IOException
java.io.IOException
public void writeDataBegin() throws java.io.IOException
java.io.IOException
public void writeDataEnd() throws java.io.IOException
java.io.IOException
public void writeTR(SavotTR tr) throws java.io.IOException
tr
- java.io.IOException
public void writeResource(ResourceSet resourceset) throws java.io.IOException
resourceset
- ResourceSetjava.io.IOException