public static class LinkDirectoryColorsComponent.LinkDirectoryReloader extends Object implements FileReloader
Modifier and Type | Field and Description |
---|---|
private LinkDirectoryColorsComponent |
_component |
private String |
_skin |
Constructor and Description |
---|
LinkDirectoryReloader(String skin,
LinkDirectoryColorsComponent component)
Constructor
|
Modifier and Type | Method and Description |
---|---|
LinkDirectoryColorsComponent |
getComponent()
Get the link directory colors component
|
String |
getId(String sourceUrl)
Get an unique ID for this File Reloader
|
String |
getSkin()
Get the skin
|
void |
updateFile(String sourceUrl,
InputStream is)
Update the file, the sourceUrl is only there if you manage multiple files, the Configuration object is already present to read it
|
private LinkDirectoryColorsComponent _component
public LinkDirectoryReloader(String skin, LinkDirectoryColorsComponent component)
skin
- the skincomponent
- the link directory colors componentpublic LinkDirectoryColorsComponent getComponent()
public void updateFile(String sourceUrl, InputStream is) throws Exception
FileReloader
updateFile
in interface FileReloader
sourceUrl
- the url of the file.is
- the input stram to read, can be null if no file was readException
- something went wrong while reading the inputstreampublic String getId(String sourceUrl)
FileReloader
getId
in interface FileReloader
sourceUrl
- this is passed as an argument if your class read multiple files.
If it reads only one file, the full class name can be a good enough ID