Class FileCfgObject
java.lang.Object
dev.voidframework.core.remoteconfiguration.FileCfgObject
- All Implemented Interfaces:
Closeable,AutoCloseable
Represents a file.
-
Constructor Summary
ConstructorsConstructorDescriptionFileCfgObject(byte[] content, String target) Build a new instance.FileCfgObject(InputStream is, String target) Build a new instance.FileCfgObject(String key, String rawContent) Build a new instance. -
Method Summary
-
Constructor Details
-
FileCfgObject
Build a new instance. The file instructions must follows this format: "TARGET;BASE64_CONTENT"- Parameters:
key- The configuration keyrawContent- The file instructions
-
FileCfgObject
Build a new instance.- Parameters:
content- The file contenttarget- Where to save the file
-
FileCfgObject
Build a new instance.- Parameters:
is- The file input streamtarget- Where to save the file
-
-
Method Details
-
apply
public void apply()Tries to save file. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
toString
-