|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.savot.writer.SavotWriter
public class SavotWriter
VOTable document generation from memory
Constructor Summary | |
---|---|
SavotWriter()
|
Method Summary | |
---|---|
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 |
static java.lang.String |
encodeAttribute(java.lang.String src)
Encode special characters to entities |
static 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 |
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)
Generates a VOTable XML document corresponding to the internal model |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SavotWriter()
Method Detail |
---|
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 static java.lang.String encodeAttribute(java.lang.String src)
src
-
public static java.lang.String encodeElement(java.lang.String src)
src
-
public void generateDocument(SavotVOTable votable)
votable
- object corresponding to the savot internal modelpublic void generateDocument(SavotVOTable votable, java.io.OutputStream stream)
votable
- object corresponding to the savot internal modelstream
- the result is sent to this streampublic void generateDocument(SavotVOTable votable, java.lang.String file)
votable
- object corresponding to the savot internal modelfile
- is sent to this filepublic void generateDocument(SavotVOTable votable, java.lang.String file, java.io.OutputStream stream)
votable
- SavotVOTablefile
- Stringstream
- OutputStreampublic void writeDescription(java.lang.String description)
votable
- SavotVOTablefile
- Stringstream
- OutputStreampublic void initStream(java.lang.String file)
file
- Stringpublic void initStream(java.io.OutputStream stream)
stream
- OutputStreampublic void writeComment(java.lang.String comment)
comment
- Stringpublic void writeDocumentHead(SavotVOTable votable)
votable
- public void writeDocumentEnd()
votable
- public void writeCoosys(CoosysSet coosysSet)
coosysSet
- public void writeParam(ParamSet params)
params
- public void writeParamRef(ParamRefSet refparams)
refparams
- public void writeLink(LinkSet linkSet)
linkSet
- public void writeInfo(InfoSet infoSet)
infoSet
- public void writeField(FieldSet fieldSet)
fieldSet
- public void writeFieldRef(FieldRefSet fieldRefSet)
fieldRefSet
- public void writeStream(SavotStream stream)
stream
- public void writeBinary(SavotBinary binary)
binary
- public void writeValues(SavotValues values)
values
- public void writeFits(SavotFits fits)
fits
- public void writeMin(SavotMin min)
min
- public void writeMax(SavotMax max)
max
- public void writeOption(OptionSet optionSet)
optionSet
- public void writeGroup(GroupSet groupSet)
groupSet
- public void writeTableBegin(SavotTable table)
table
- SavotTablepublic void writeTableEnd()
public void writeResourceBegin(SavotResource resource)
resource
- SavotResourcepublic void writeResourceEnd()
public void writeTableDataBegin()
public void writeTableDataEnd()
public void writeDataBegin()
public void writeDataEnd()
public void writeTR(SavotTR tr)
public void writeResource(ResourceSet resourceset)
resourceset
- ResourceSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |