新生代数字媒体技术羿魔方数据可视化系统_源代码_java

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

支气管哮喘病人的信息网络管理平台V1.01packageorg.jfree.base.config;importjava.util.Enumeration;importjava.util.Iterator;importorg.jfree.util.Configuration;publicabstractinterfaceModifiableConfigurationextendsConfiguration{publicabstractvoidsetConfigProperty(StringparamString1,StringparamString2);publicabstractEnumerationgetConfigProperties();publicabstractIteratorfindPropertyKeys(StringparamString);}packageorg.jfree.base.config;importjava.util.Enumeration;importjava.util.Properties;©importjava.util.Vector;publicclassSystemPropertyConfigurationextendsHierarchicalConfiguration{publicvoidsetConfigProperty(Stringkey,Stringvalue){thrownewUnsupportedOperationException(TheSystemPropertyConfigurationisreadOnly);}publicStringgetConfigProperty(Stringkey,StringdefaultValue){try{Stringvalue=System.getProperty(key);if(value!=null){returnvalue;}}catch(SecurityExceptionse){}returnsuper.getConfigProperty(key,defaultValue);}publicbooleanisLocallyDefined(Stringkey){try{returnSystem.getProperties().containsKey(key);}catch(SecurityExceptionse){}returnfalse;}publicEnumerationgetConfigProperties(){try{returnSystem.getProperties().keys();}catch(SecurityExceptionse){支气管哮喘病人的信息网络管理平台V1.02}returnnewVector().elements();}}packageorg.jfree.base.config;importjava.io.BufferedInputStream;importjava.io.IOException;importjava.io.InputStream;importjava.util.Properties;importorg.jfree.util.Log;importorg.jfree.util.ObjectUtilities;publicclassPropertyFileConfigurationextendsHierarchicalConfiguration{publicvoidload(StringresourceName){load(resourceName,PropertyFileConfiguration.class);}publicvoidload(StringresourceName,ClassresourceSource){InputStreamin=ObjectUtilities.getResourceRelativeAsStream(resourceName,resourceSource);if(in!=null){try{load(in);}finally{try{in.close();}catch(IOExceptione){}}}else{Log.debug(Configurationfilenotfoundintheclasspath:+resourceName);}}publicvoidload(InputStreamin){if(in==null){thrownewNullPointerException();}try{支气管哮喘病人的信息网络管理平台V1.03BufferedInputStreambin=newBufferedInputStream(in);Propertiesp=newProperties();p.load(bin);getConfiguration().putAll(p);bin.close();}catch(IOExceptionioe){Log.warn(Unabletoreadconfiguration,ioe);}}}packageorg.jfree.base.log;importorg.jfree.util.Log;importorg.jfree.util.LogTarget;importorg.jfree.util.PrintStreamLogTarget;publicclassDefaultLogextendsLog{privatestaticfinalPrintStreamLogTargetDEFAULT_LOG_TARGET=newPrintStreamLogTarget();privatestaticfinalDefaultLogdefaultLogInstance=newDefaultLog();publicvoidinit(){removeTarget(DEFAULT_LOG_TARGET);StringlogLevel=LogConfiguration.getLogLevel();if(logLevel.equalsIgnoreCase(error)){setDebuglevel(0);}elseif(logLevel.equalsIgnoreCase(warn)){setDebuglevel(1);}elseif(logLevel.equalsIgnoreCase(info)){setDebuglevel(2);}elseif(logLevel.equalsIgnoreCase(debug))setDebuglevel(3);}publicsynchronizedvoidaddTarget(LogTargettarget){super.addTarget(target);if(target!=DEFAULT_LOG_TARGET)removeTarget(DEFAULT_LOG_TARGET);}publicstaticDefaultLoggetDefaultLog(){returndefaultLogInstance;}publicstaticvoidinstallDefaultLog(){Log.defineLog(defaultLogInstance);}static支气管哮喘病人的信息网络管理平台V1.04{defaultLogInstance.addTarget(DEFAULT_LOG_TARGET);try{Stringproperty=System.getProperty(org.jfree.DebugDefault,false);if(Boolean.valueOf(property).booleanValue()){defaultLogInstance.setDebuglevel(3);}elsedefaultLogInstance.setDebuglevel(1);}catch(SecurityExceptionse){defaultLogInstance.setDebuglevel(1);}}}packageorg.jfree.base.log;importorg.jfree.base.modules.AbstractModule;importorg.jfree.base.modules.ModuleInitializeException;importorg.jfree.base.modules.SubSystem;importorg.jfree.util.Configuration;importorg.jfree.util.Log;importorg.jfree.util.PrintStreamLogTarget;publicclassDefaultLogModuleextendsAbstractModule{publicDefaultLogModule()throwsModuleInitializeException{loadModuleInfo();}publicvoidinitialize(SubSystemsubSystem)throwsModuleInitializeException{if(LogConfiguration.isDisableLogging()){return;}if(LogConfiguration.getLogTarget().equals(PrintStreamLogTarget.class.getName())){DefaultLog.installDefaultLog();Log.getInstance().addTarget(newPrintStreamLogTarget());if(true.equals(subSystem.getGlobalConfig().getConfigProperty(org.jfree.base.LogAutoInit))){Log.getInstance().init();}Log.info(Defaultlogtargetstartedpreviouslogmessagescouldhavebeenignored.);}}}packageorg.jfree.base.log;支气管哮喘病人的信息网络管理平台V1.05importorg.jfree.base.AbstractBoot;importorg.jfree.base.BaseBoot;importorg.jfree.base.config.ModifiableConfiguration;importorg.jfree.util.Configuration;importorg.jfree.util.PrintStreamLogTarget;publicclassLogConfiguration{publicstaticfinalStringDISABLE_LOGGING_DEFAULT=false;publicstaticfinalStringLOGLEVEL=org.jfree.base.LogLevel;publicstaticfinalStringLOGLEVEL_DEFAULT=Info;publicstaticfinalStringLOGTARGET=org.jfree.base.LogTarget;publicstaticfinalStringLOGTARGET_DEFAULT=PrintStreamLogTarget.class.getName();publicstaticfinalStringDISABLE_LOGGING=org.jfree.base.NoDefaultDebug;publicstaticStringgetLogTarget(){returnBaseBoot.getInstance().getGlobalConfig().getConfigProperty(org.jfree.base.LogTarget,LOGTA

1 / 60
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功