public class JsonUtils extends Object
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
load(InputStream inputStream,
Class<T> clazz) |
static List<DependencyInfo> |
readDependencies(InputStream in) |
static List<AgentProjectInfo> |
readProjects(InputStream in) |
static List<AgentProjectInfo> |
readProjectsChunks(InputStream in) |
static UpdateInventoryRequest |
readUpdateInventoryRequest(InputStream in) |
static <T> String |
save(T object,
boolean pretty) |
static void |
writeProjects(OutputStream out,
List<AgentProjectInfo> projects) |
static void |
writeUpdateInventoryRequest(OutputStream out,
UpdateInventoryRequest message) |
public static final String UTF_8
public static List<DependencyInfo> readDependencies(InputStream in) throws IOException
IOExceptionpublic static List<AgentProjectInfo> readProjects(InputStream in) throws IOException
IOExceptionpublic static UpdateInventoryRequest readUpdateInventoryRequest(InputStream in) throws IOException
IOExceptionpublic static void writeUpdateInventoryRequest(OutputStream out, UpdateInventoryRequest message) throws IOException
IOExceptionpublic static void writeProjects(OutputStream out, List<AgentProjectInfo> projects) throws IOException
IOExceptionpublic static <T> String save(T object, boolean pretty)
public static <T> T load(InputStream inputStream, Class<T> clazz) throws IOException
IOExceptionpublic static List<AgentProjectInfo> readProjectsChunks(InputStream in) throws IOException
IOExceptionCopyright © 2011-2024 White Source. All Rights Reserved.