Class RecipeSerializer

java.lang.Object
org.openrewrite.RecipeSerializer

public class RecipeSerializer extends Object
  • Constructor Details

    • RecipeSerializer

      public RecipeSerializer()
  • Method Details

    • write

      public void write(Recipe recipe, OutputStream out)
    • write

      public byte[] write(Recipe recipe)
    • read

      public Recipe read(InputStream input)
    • read

      public Recipe read(byte[] bytes)
    • maybeAddKotlinModule

      public static void maybeAddKotlinModule(com.fasterxml.jackson.databind.ObjectMapper mapper)
      If it is available on the runtime classpath, add jackson's Kotlin module to the provided object mapper. Does nothing if jackson's kotlin module is not available.