@NotThreadSafe public class ConfigurationFile extends Object implements com.helger.commons.id.IHasID<String>, com.helger.commons.text.IHasDescription
| Constructor and Description |
|---|
ConfigurationFile(com.helger.commons.io.resource.IReadableResource aRes)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists() |
String |
getContentAsString() |
String |
getContentAsString(Charset aCharset) |
Charset |
getDefaultCharset() |
String |
getDescription() |
String |
getID() |
com.helger.commons.io.resource.IReadableResource |
getResource() |
EConfigurationFileSyntax |
getSyntaxHighlightLanguage() |
ConfigurationFile |
setDefaultCharset(Charset aDefaultCharset) |
ConfigurationFile |
setDescription(String sDescription)
Set the description to use.
|
ConfigurationFile |
setSyntaxHighlightLanguage(EConfigurationFileSyntax eSyntaxHighlightLanguage) |
String |
toString() |
public ConfigurationFile(@Nonnull com.helger.commons.io.resource.IReadableResource aRes)
aRes - The resource that points to the relevant configuration file.@Nonnull public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nonnull public com.helger.commons.io.resource.IReadableResource getResource()
public boolean exists()
@Nullable public String getDescription()
getDescription in interface com.helger.commons.text.IHasDescriptionnull.@Nonnull public ConfigurationFile setDescription(@Nullable String sDescription)
sDescription - The description for this configuration file. May be
null.@Nonnull public ConfigurationFile setDefaultCharset(@Nonnull Charset aDefaultCharset)
@Nonnull public EConfigurationFileSyntax getSyntaxHighlightLanguage()
@Nonnull public ConfigurationFile setSyntaxHighlightLanguage(@Nonnull EConfigurationFileSyntax eSyntaxHighlightLanguage)
Copyright © 2014–2018 Philip Helger. All rights reserved.