ExtendedProperties
>type test.MS932 hoge=あいうえお >type test.groovy import org.apache.commons.collections.ExtendedProperties; prop = new ExtendedProperties() prop.load(new java.io.FileInputStream("test.MS932"), "MS932") prop.getKeys().each { println(it + "=" + prop.getString(it)) } >groovy test.groovy hoge=あいうえお
便利だな。
GroovyのライブラリにはCollectionライブラリが入っているのでクラスパス通す必要もないし。