public class Props extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
filter(Properties properties,
Predicate2<String,String> predicate) |
static Properties |
load(InputStream inputStream) |
static Properties |
load(Reader reader) |
static Properties |
load(Resource resource) |
static Properties |
loadFromClasspath(String classpath) |
static Properties |
loadFromFile(File file) |
static Properties |
loadFromFile(String location) |
static Properties |
loadFromString(String string) |
static Properties |
loadFromURL(String url) |
static Properties |
loadFromURL(URL url) |
static Properties |
loadFromXML(InputStream inputStream) |
static Properties |
loadFromXML(Resource resource) |
static Map<String,String> |
toStringMap(Properties properties) |
static Map<String,String> |
toStringMap(Properties properties,
boolean sort) |
static Map<String,String> |
toStringMap(Properties properties,
Comparator<String> keyComparator) |
public static Properties loadFromFile(File file) throws IOException
IOExceptionpublic static Properties loadFromFile(String location) throws IOException
IOExceptionpublic static Properties loadFromClasspath(String classpath) throws IOException
IOExceptionpublic static Properties loadFromURL(String url) throws IOException
IOExceptionpublic static Properties loadFromURL(URL url) throws IOException
IOExceptionpublic static Properties loadFromString(String string) throws IOException
IOExceptionpublic static Properties load(Resource resource) throws IOException
IOExceptionpublic static Properties load(Reader reader) throws IOException
IOExceptionpublic static Properties load(InputStream inputStream) throws IOException
IOExceptionpublic static Properties loadFromXML(Resource resource) throws IOException
IOExceptionpublic static Properties loadFromXML(InputStream inputStream) throws IOException
IOExceptionpublic static Map<String,String> toStringMap(@Nullable Properties properties)
public static Map<String,String> toStringMap(@Nullable Properties properties, boolean sort)
public static Map<String,String> toStringMap(@Nullable Properties properties, @Nullable Comparator<String> keyComparator)
public static Map<String,String> filter(Properties properties, Predicate2<String,String> predicate)
Copyright © 2021. All rights reserved.