cds.savot.writer
Class WriteDocument

java.lang.Object
  extended bycds.savot.writer.WriteDocument

public class WriteDocument
extends java.lang.Object

Titre : WriteDocument

Description : VOTable document generation from memory

Copyright : Copyright (c) 2003-2003

Société : CDS

Version:
2.0
Author:
Andre Schaaff

Constructor Summary
WriteDocument()
           
 
Method Summary
 void enableEntities(boolean entities)
          Enable or disable entities mapping
static java.lang.String encode(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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDocument

public WriteDocument()
Method Detail

enableEntities

public void enableEntities(boolean entities)
Enable or disable entities mapping

Parameters:
entities - true if entities are taken into account

encode

public static java.lang.String encode(java.lang.String src)
Encode special characters to entities

Parameters:
src -
Returns:
src

generateDocument

public void generateDocument(SavotVOTable votable)
Generates a VOTable XML document corresponding to the internal model The result is sent to the standard output

Parameters:
votable - object corresponding to the savot internal model

generateDocument

public void generateDocument(SavotVOTable votable,
                             java.io.OutputStream stream)
Generates a VOTable XML document corresponding to the internal model

Parameters:
votable - object corresponding to the savot internal model
stream - the result is sent to this stream

generateDocument

public void generateDocument(SavotVOTable votable,
                             java.lang.String file)
Generates a VOTable XML document corresponding to the internal model

Parameters:
votable - object corresponding to the savot internal model
file - is sent to this file

generateDocument

public void generateDocument(SavotVOTable votable,
                             java.lang.String file,
                             java.io.OutputStream stream)
Generates a VOTable XML document corresponding to the internal model

Parameters:
votable -