Enum IO

java.lang.Object
java.lang.Enum<IO>
redis.embedded.util.IO
All Implemented Interfaces:
Serializable, Comparable<IO>

public enum IO extends Enum<IO>
  • Method Details

    • values

      public static IO[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static IO valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • writeResourceToExecutableFile

      public static File writeResourceToExecutableFile(String resourcePath) throws IOException
      Throws:
      IOException
    • checkedToRuntime

      public static Runnable checkedToRuntime(CheckedRunnable runnable)
    • addShutdownHook

      public static void addShutdownHook(String name, Runnable run)
    • logStream

      public static void logStream(InputStream stream, Consumer<String> logConsumer)
    • newDaemonThread

      public static Thread newDaemonThread(Runnable run)
    • findMatchInStream

      public static boolean findMatchInStream(InputStream in, Pattern pattern, StringBuilder processOutput) throws IOException
      Throws:
      IOException
    • processToLines

      public static Stream<String> processToLines(String command) throws IOException
      Throws:
      IOException
    • findBinaryInPath

      public static Path findBinaryInPath(String name) throws FileNotFoundException
      Throws:
      FileNotFoundException