public class StringSettingsSource extends Object implements SettingsSource
CharSequence as a settings source.| Constructor and Description | 
|---|
StringSettingsSource(CharSequence settings)
Creates a new settings source backed by the specified string. 
 | 
StringSettingsSource(CharSequence settings,
                                        String location)
Creates a new settings source backed by the specified string. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
InputStream | 
getInputStream()
Gets a byte stream to the settings contents. 
 | 
String | 
getLocation()
Provides a user-friendly hint about the location of the settings. 
 | 
String | 
getSettings()
Gets the character sequence of this settings source. 
 | 
String | 
toString()  | 
public StringSettingsSource(CharSequence settings)
settings - The settings' string representation, may be empty or null.public StringSettingsSource(CharSequence settings, String location)
settings - The settings' string representation, may be empty or null.location - The location to report for this use, may be null.public InputStream getInputStream() throws IOException
SettingsSourcegetInputStream in interface SettingsSourcenull.IOExceptionpublic String getLocation()
SettingsSourcegetLocation in interface SettingsSourcenull.public String getSettings()
null.Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.