Class JsonZoneWriter


  • public class JsonZoneWriter
    extends ZoneWriter
    JsonZoneWriter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.log4j.Logger logger  
      protected java.io.File outputDir  
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonZoneWriter​(java.io.File file)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void writeZone​(java.lang.String zoneName, org.json.JSONObject json)  
      void writeZones​(java.util.HashMap<java.lang.String,​Zone> zones, boolean currentOnly)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • outputDir

        protected java.io.File outputDir
      • logger

        protected org.apache.log4j.Logger logger
    • Constructor Detail

      • JsonZoneWriter

        public JsonZoneWriter​(java.io.File file)
    • Method Detail

      • writeZone

        public void writeZone​(java.lang.String zoneName,
                              org.json.JSONObject json)
                       throws java.lang.Exception
        Parameters:
        zoneName -
        json -
        Throws:
        java.lang.Exception
      • writeZones

        public void writeZones​(java.util.HashMap<java.lang.String,​Zone> zones,
                               boolean currentOnly)
                        throws java.lang.Exception
        Specified by:
        writeZones in class ZoneWriter
        Throws:
        java.lang.Exception