public class IOHelpers extends Object
Modifier and Type | Method and Description |
---|---|
static String |
convertToJson(String jsonOrYaml)
Deprecated.
will be removed in future versions
|
static String |
convertYamlToJson(String yaml)
Deprecated.
will be removed in future versions
|
static boolean |
isJSONValid(String json)
Deprecated.
will be removed in future versions
|
static String |
readFully(InputStream in) |
static String |
readFully(InputStream in,
Charset charset) |
static String |
readFully(Reader r) |
public static String readFully(InputStream in, Charset charset) throws IOException
IOException
public static String readFully(InputStream in) throws IOException
IOException
public static String readFully(Reader r) throws IOException
IOException
@Deprecated public static boolean isJSONValid(String json)
@Deprecated public static String convertYamlToJson(String yaml)
@Deprecated public static String convertToJson(String jsonOrYaml)
Copyright © 2015–2023 Red Hat. All rights reserved.