public class DefaultFileFormat extends Object implements FileFormat
Modifier and Type | Field and Description |
---|---|
static String |
TINY_FILE_FORMAT_TYPE |
Constructor and Description |
---|
DefaultFileFormat() |
Modifier and Type | Method and Description |
---|---|
Object |
formatFile(String filePath,
String classPath) |
<T> String |
formatObject(T t) |
String |
getEncoding() |
String |
getType() |
static boolean |
isSimpleType(Class<?> clazz) |
public static String TINY_FILE_FORMAT_TYPE
public static boolean isSimpleType(Class<?> clazz)
public Object formatFile(String filePath, String classPath)
formatFile
in interface FileFormat
public <T> String formatObject(T t)
formatObject
in interface FileFormat
public String getType()
getType
in interface FileFormat
public String getEncoding()
getEncoding
in interface FileFormat
Copyright © 2006–2018 TinyGroup. All rights reserved.