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.
  • 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
    • FileCfgObject

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

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