| Package | Description |
|---|---|
| hu.ibello.transform |
| Modifier and Type | Method and Description |
|---|---|
TYPE |
JsonTypeDeserializer.deserialize(String source,
JsonDeserializer context)
This method receives a JSON string and should create the java object with the specific type.
|
<T> List<T> |
CsvTransformer.fromCsv(File file,
Class<T> typeOfT)
This method reads the given CSV data from a file and loads it into a list.
|
<T> List<T> |
CsvTransformer.fromCsv(Reader csv,
Class<T> typeOfT)
This method reads the given CSV data and loads it into a list.
|
<T> List<T> |
CsvTransformer.fromCsv(String csv,
Class<T> typeOfT)
This method reads the given CSV data and loads it into a list.
|
<T> T |
JsonDeserializer.fromJson(Reader json,
Type typeOfT)
This method deserializes the JSON read from the specified reader into an object of the specified type.
|
<T> T |
JsonDeserializer.fromJson(String json,
Type typeOfT)
This method deserializes the specified JSON into an object of the specified type.
|
<T> List<T> |
JsonDeserializer.fromJsonToList(Reader json,
Class<T> typeOfT)
This method deserializes the specified JSON into a list of objects of the specified type.
|
<T> List<T> |
JsonDeserializer.fromJsonToList(String json,
Class<T> typeOfT)
This method deserializes the specified JSON into a list of objects of the specified type.
|
<T> void |
JsonTransformer.registerDeserializer(JsonTypeDeserializer<T> deserializer)
Registers a deserializer instance into the ibello.
|
<T> void |
JsonTransformer.registerSerializer(JsonTypeSerializer<T> serializer)
Registers a serializer instance into the ibello.
|
String |
JsonTypeSerializer.serialize(TYPE source,
JsonSerializer context)
This method receives a java object and should serialize it into a JSON string.
|
<T> void |
CsvTransformer.toCsv(File file,
List<? extends T> rows,
Class<T> typeOfT)
Transforms the given object list into a CSV data and write it into the given file.
|
<T> String |
CsvTransformer.toCsv(List<? extends T> rows,
Class<T> typeOfT)
Transforms the given object list into a CSV data and returns it.
|
<T> void |
CsvTransformer.toCsv(OutputStream stream,
List<? extends T> rows,
Class<T> typeOfT)
Transforms the given object list into a CSV data and write it into the given stream.
|
Created by Kornél Simon, 2022