public class InputAdapter extends Object
| Modifier and Type | Field and Description |
|---|---|
Properties |
props |
| Constructor and Description |
|---|
InputAdapter() |
InputAdapter(boolean concurrent) |
InputAdapter(Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
read(Reader reader)
Read in a standard (i.e., legacy) properties formatted file.
|
void |
readFile(File path,
Charset charset) |
void |
readJSON(Reader in)
Read in from a JSON-encoded stream.
|
void |
readLegacyProperties(Properties legacy)
Read in from legacy java.util.Properties
|
void |
readMap(Map<String,?> map)
Load from a Java Map
|
void |
readURL(URL url)
Read in from a given URL.
|
void |
readXML(Reader reader)
Read in from a stream encoded using the (legacy) Sun DTD.
|
void |
readXML(Reader reader,
boolean validate) |
public final Properties props
public InputAdapter()
public InputAdapter(boolean concurrent)
public InputAdapter(Properties props)
public void readMap(Map<String,?> map)
map - public void readLegacyProperties(Properties legacy)
legacy - public void readURL(URL url)
url - public void read(Reader reader)
reader - public void readXML(Reader reader)
reader - public void readXML(Reader reader, boolean validate)
public void readJSON(Reader in)
in - Copyright © 2011–2016 David R. Smith. All rights reserved.