com.ngMAT.Common
クラス CoolProperties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--com.ngMAT.Common.CoolProperties
すべての実装インタフェース:
java.lang.Cloneable, java.util.Map, java.io.Serializable
直系の既知のサブクラス:
SmallCodeTable

public class CoolProperties
extends java.util.Properties

プロパティのちょっとした拡張クラスで英数字以外の文字も扱える。 Cool property utility class. This class extends java.uti.Properties. "load()" method defined in this class supports internationalized string in default encoding character code set. プロパティファイル内の先頭行などで
#EncodingType= の形式で指定すると、そのエンコーディングでファイルからロード可能。
また
includes= の形式で別ファイルを指定すると、それをインクルードする。ファイル名は","で区切って
複数指定可能。includes行自体も複数回登場可能。
Following special key with "#Encoding"; #EncodingType=<encodingtype> will tell the properties file loader of this class to load with the specified encoding type.
And "includes" key will cause to load and merge other properties files. You can multiple file names in one line separated by commas or multiple "includes" lines.

導入されたバージョン:
JDK1.1.8
関連項目:
直列化された形式

クラス java.util.Map から継承した内部クラス
java.util.Map.Entry
 
フィールドの概要
static java.lang.String ENCODING_TYPE_KEY
           
 
クラス java.util.Properties から継承したフィールド
defaults
 
コンストラクタの概要
CoolProperties()
          default constructor
CoolProperties(java.lang.String filename)
          指定されたファイルからプロパティをロードするコンストラクタ。
 
メソッドの概要
 java.lang.String getProperty(int key)
           
 java.lang.String getProperty(long key)
           
 java.lang.String getProperty(short key)
           
 void load(java.io.InputStream is)
          loads properties elements from specified InputStream with default encoding..
 void load(java.io.InputStreamReader isr)
          loads properties elements from specified InputStreamReader with default encoding..
 void loadFromCSVString(java.lang.String src)
           
 
クラス java.util.Properties から継承したメソッド
getProperty, getProperty, list, list, propertyNames, save, setProperty, store
 
クラス java.util.Hashtable から継承したメソッド
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

ENCODING_TYPE_KEY

public static final java.lang.String ENCODING_TYPE_KEY
コンストラクタの詳細

CoolProperties

public CoolProperties()
default constructor

CoolProperties

public CoolProperties(java.lang.String filename)
               throws java.io.IOException
指定されたファイルからプロパティをロードするコンストラクタ。 construct a new object and load from the specified properties file. When the first line specifies character encoding type, this constructor will load data with that encoding type. This format is:
#EncodingType=[enctype] enctype=SJIS/EUSJIS/....
メソッドの詳細

load

public void load(java.io.InputStream is)
          throws java.io.IOException
loads properties elements from specified InputStream with default encoding..
オーバーライド:
クラス java.util.Properties 内の load

load

public void load(java.io.InputStreamReader isr)
          throws java.io.IOException
loads properties elements from specified InputStreamReader with default encoding..

loadFromCSVString

public void loadFromCSVString(java.lang.String src)

getProperty

public java.lang.String getProperty(long key)

getProperty

public java.lang.String getProperty(int key)

getProperty

public java.lang.String getProperty(short key)


バグや機能要求の報告
最新の情報
Copyright 2000 - ngMAT Corporation