org.wdssii.core
Class XmlDataEncoder

java.lang.Object
  extended by org.wdssii.core.DataEncoder
      extended by org.wdssii.core.XmlDataEncoder

public class XmlDataEncoder
extends DataEncoder

Author:
lakshman

Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
XmlDataEncoder()
           
 
Method Summary
private static Element createDataTypeElement(Document doc, DataTable dt)
           
private static Element createStrefElement(Document doc, Location location, Date time)
           
private static Document createXMLDocument(DataTable dt)
           
protected  String[] getParams(String relativeFileName)
           
private  String getRelativeFileName(DataType dt, String outputDir, String formattedDate, String[] subtypes)
           
protected  void writeAndNotify(DataTable dt, String outputDir, String[] subtypes)
           
protected  void writeAndNotify(LatLonGrid dt, String outputDir, String[] subtypes)
           
protected  void writeAndNotify(PolarGrid dt, String outputDir, String[] subtypes)
           
 
Methods inherited from class org.wdssii.core.DataEncoder
getFormattedDate, getFormattedDate, getSparseGridThreshold, isAlwaysSparseGrid, isCompressionEnabled, isNeverSparseGrid, notifyRecord, setCompressionEnabled, setCompressionEnabled, setSparseGridThreshold, shouldWriteSparse, writeDataAndNotify, writeDataAndNotify, writeDataAndNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

XmlDataEncoder

public XmlDataEncoder()
Method Detail

getParams

protected String[] getParams(String relativeFileName)
Specified by:
getParams in class DataEncoder

writeAndNotify

protected void writeAndNotify(PolarGrid dt,
                              String outputDir,
                              String[] subtypes)
Specified by:
writeAndNotify in class DataEncoder

writeAndNotify

protected void writeAndNotify(LatLonGrid dt,
                              String outputDir,
                              String[] subtypes)
Specified by:
writeAndNotify in class DataEncoder

writeAndNotify

protected void writeAndNotify(DataTable dt,
                              String outputDir,
                              String[] subtypes)
Specified by:
writeAndNotify in class DataEncoder

createXMLDocument

private static Document createXMLDocument(DataTable dt)
                                   throws ParserConfigurationException
Throws:
ParserConfigurationException

createDataTypeElement

private static Element createDataTypeElement(Document doc,
                                             DataTable dt)

createStrefElement

private static Element createStrefElement(Document doc,
                                          Location location,
                                          Date time)

getRelativeFileName

private String getRelativeFileName(DataType dt,
                                   String outputDir,
                                   String formattedDate,
                                   String[] subtypes)
                            throws IOException
Throws:
IOException