public class FileSettingsSource extends Object implements SettingsSource
File
as a settings source.Constructor and Description |
---|
FileSettingsSource(File settingsFile)
Creates a new settings source backed by the specified file.
|
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.
|
File |
getSettingsFile()
Gets the settings file of this model source.
|
String |
toString() |
public FileSettingsSource(File settingsFile)
settingsFile
- The settings file, must not be null
.public InputStream getInputStream() throws IOException
SettingsSource
getInputStream
in interface SettingsSource
null
.IOException
public String getLocation()
SettingsSource
getLocation
in interface SettingsSource
null
.public File getSettingsFile()
null
.Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.