Class ProtoFileCopier

java.lang.Object
ai.pipestream.grpc.gatherer.spi.ProtoFileCopier

public final class ProtoFileCopier extends Object
Shared proto-file helper methods for extension implementations.
  • Method Details

    • sha256

      public static String sha256(Path path) throws IOException
      Computes the SHA-256 hash of the given file.
      Parameters:
      path - the path to the file
      Returns:
      the hex string representing the hash
      Throws:
      IOException - if an I/O error occurs
    • splitCsv

      public static List<String> splitCsv(String raw)
      Splits a comma-separated string into a list of trimmed, non-empty strings.
      Parameters:
      raw - the raw CSV string
      Returns:
      a list of trimmed strings