public class DataMapper extends Object
| Constructor and Description |
|---|
DataMapper(DataParser parser) |
| Modifier and Type | Method and Description |
|---|---|
static DataMapper |
forJson() |
static DataMapper |
forXml() |
String |
getPath() |
<T> T |
map(T dest,
InputStream from) |
<T> T |
map(T dest,
String from) |
static void |
mapFiles(Object root,
String dir,
String suffix) |
static void |
setMaxRecursiveFiles(int maxRecursiveFiles) |
DataMapper |
setPath(String path) |
DataMapper |
setShortenMapEntry(Boolean shortenMapEntry) |
DataMapper |
setVerbose(Boolean verbose) |
public DataMapper(DataParser parser)
public static DataMapper forJson()
public static DataMapper forXml()
public static void setMaxRecursiveFiles(int maxRecursiveFiles)
public static void mapFiles(Object root, String dir, String suffix) throws Exception
Exceptionpublic <T> T map(T dest,
InputStream from)
throws Exception
Exceptionpublic String getPath()
public DataMapper setPath(String path)
public DataMapper setVerbose(Boolean verbose)
public DataMapper setShortenMapEntry(Boolean shortenMapEntry)
Copyright © 2015–2023 The Struqt Project. All rights reserved.