Class IOHelpers
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.IOHelpers
-
public class IOHelpers extends Object
-
-
Constructor Summary
Constructors Constructor Description IOHelpers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
convertYamlToJson(String yaml)
static boolean
isJSONValid(String json)
static String
readFully(InputStream in)
static String
readFully(Reader r)
-
-
-
Method Detail
-
readFully
public static String readFully(InputStream in) throws IOException
- Throws:
IOException
-
readFully
public static String readFully(Reader r) throws IOException
- Throws:
IOException
-
isJSONValid
public static boolean isJSONValid(String json)
-
convertYamlToJson
public static String convertYamlToJson(String yaml) throws IOException
- Throws:
IOException
-
-