
public class FSConnector extends AbstractConnector
Connector.
| Constructor and Description |
|---|
FSConnector() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset() |
byte[] |
getContent(String key)
return a byte[]-Value for the given key.
|
Object |
getObject(String key)
return a Object-Value for the given key.
|
File |
getRootFolder()
return the root of this FileSystem ContenResolver.
|
String |
getString(String key)
return a String-Value for the given key.
|
void |
setCharset(String charset) |
void |
setContent(String key,
byte[] value) |
void |
setContentResolver(ContentResolver contentResolver)
set a ContentResolver as Helper for
Connector.getContent(String). |
void |
setRootFolderPath(String rootFolderPath)
Delegate the rootFolderPath to the
FSContentResolver.setRootFolderPath(String). |
void |
setString(String key,
String value) |
addConnector, getConnectors, getContentResolver, getName, getObjectResolver, init, setName, setObjectResolverpublic byte[] getContent(String key)
The concrete implementation can use the ContentResolver if required
key - the Key for the configuration-property. e.g.: "com/mycompany/myapp/myParameterKey"public Object getObject(String key)
The concrete implementation can use the ObjectResolver if required
key - the Key for the configuration-property. e.g.: "com/mycompany/myapp/myParameterKey"public String getString(String key)
key - the Key for the configuration-property. e.g.: "com/mycompany/myapp/myParameterKey"public void setContent(String key, byte[] value) throws IOException
key - The Settings4j Key.value - The value to Store.IOException - if an error occured.public void setString(String key, String value) throws IOException
key - The Settings4j Key.value - The value to Store.IOException - if an error occured.public String getCharset()
public void setCharset(String charset)
public void setRootFolderPath(String rootFolderPath)
FSContentResolver.setRootFolderPath(String).rootFolderPath - The root Folder Path where the settings could be stored.public void setContentResolver(ContentResolver contentResolver)
Connector.getContent(String).setContentResolver in interface ConnectorsetContentResolver in class AbstractConnectorcontentResolver - the ContentResolver to set.public File getRootFolder()
if no one is set, the "." will be returned.
Copyright © 2008–2014. All rights reserved.