Class FileCfgObject

java.lang.Object
dev.voidframework.core.remoteconfiguration.FileCfgObject
All Implemented Interfaces:
Closeable, AutoCloseable

public final class FileCfgObject extends Object implements Closeable
Represents a file.
Since:
1.2.0
  • Constructor Details

    • FileCfgObject

      public FileCfgObject(String key, String rawContent)
      Build a new instance. The file instructions must follows this format: "TARGET;BASE64_CONTENT"
      Parameters:
      key - The configuration key
      rawContent - The file instructions
      Since:
      1.2.0
    • FileCfgObject

      public FileCfgObject(byte[] content, String target)
      Build a new instance.
      Parameters:
      content - The file content
      target - Where to save the file
      Since:
      1.2.0
    • FileCfgObject

      public FileCfgObject(InputStream is, String target)
      Build a new instance.
      Parameters:
      is - The file input stream
      target - Where to save the file
      Since:
      1.2.0
  • Method Details