All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cosium.code.format.executable.Executable Maven / Gradle / Ivy

The newest version!
package com.cosium.code.format.executable;

import java.io.IOException;
import java.io.InputStream;
import java.util.function.Supplier;

/**
 * @author Réda Housni Alaoui
 */
public interface Executable {

  /** Erase the executable content */
  Executable truncate() throws IOException;

  /**
   * @param template The template to truncate with
   * @param sourceEncoding The source encoding
   * @param values The values to use for the template interpolations
   */
  Executable truncateWithTemplate(
      Supplier template, String sourceEncoding, Object... values) throws IOException;

  /**
   * Appends a command call to the executable
   *
   * @param commandCall The command call to append to the executable
   */
  Executable appendCommandCall(String commandCall) throws IOException;

  /**
   * Remove a command call from the executable
   *
   * @param commandCall The command call to remove
   */
  Executable removeCommandCall(String commandCall);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy