public class PropertiesParser extends Object
| 构造器和说明 |
|---|
PropertiesParser(InputStream inputStream) |
PropertiesParser(Properties props) |
public PropertiesParser(InputStream inputStream) throws IOException
IOExceptionpublic PropertiesParser(Properties props)
public Properties getUnderlyingProperties()
public boolean getBooleanProperty(String name)
public boolean getBooleanProperty(String name, boolean def)
public byte getByteProperty(String name) throws NumberFormatException
public byte getByteProperty(String name, byte def) throws NumberFormatException
public char getCharProperty(String name)
public char getCharProperty(String name, char def)
public double getDoubleProperty(String name) throws NumberFormatException
public double getDoubleProperty(String name, double def) throws NumberFormatException
public float getFloatProperty(String name) throws NumberFormatException
public float getFloatProperty(String name, float def) throws NumberFormatException
public int getIntProperty(String name) throws NumberFormatException
public int getIntProperty(String name, int def) throws NumberFormatException
public int[] getIntArrayProperty(String name) throws NumberFormatException
public int[] getIntArrayProperty(String name, int[] def) throws NumberFormatException
public long getLongProperty(String name) throws NumberFormatException
public long getLongProperty(String name, long def) throws NumberFormatException
public short getShortProperty(String name) throws NumberFormatException
public short getShortProperty(String name, short def) throws NumberFormatException
public Properties getPropertyGroup(String prefix)
public Properties getPropertyGroup(String prefix, boolean stripPrefix)
public Properties getPropertyGroup(String prefix, boolean stripPrefix, String[] excludedPrefixes)
Copyright © 2017–2018. All rights reserved.