Package com.codedjson.utils
Class Base
- java.lang.Object
-
- com.codedjson.utils.Base
-
-
Field Summary
Fields Modifier and Type Field Description protected File
baseFileObj
protected String[]
commaSeparatedLines
protected List<String>
commentedLines
protected String
content
protected String
filePath
protected com.google.gson.Gson
gson
protected boolean
isContextConverted
protected boolean
isFilePath
protected boolean
isInjectDone
protected boolean
isInjectExist
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
appendPath(String parent, String... paths)
protected String
getDirectory(String absFilePath)
String
getFullPath()
protected String
getType(Object var)
protected boolean
isAbsolutePath(String filePath)
protected static Object
parseJson(String jsonString)
static String
read(String filePath)
-
-
-
Field Detail
-
filePath
protected String filePath
-
content
protected String content
-
baseFileObj
protected File baseFileObj
-
gson
protected com.google.gson.Gson gson
-
commaSeparatedLines
protected String[] commaSeparatedLines
-
isFilePath
protected boolean isFilePath
-
isInjectDone
protected boolean isInjectDone
-
isInjectExist
protected boolean isInjectExist
-
isContextConverted
protected boolean isContextConverted
-
-
Constructor Detail
-
Base
public Base(String filePath, boolean isFilePath) throws FileNotFoundException
- Throws:
FileNotFoundException
-
Base
public Base(String content)
-
-
Method Detail
-
getFullPath
public String getFullPath()
-
read
public static String read(String filePath) throws FileNotFoundException
- Throws:
FileNotFoundException
-
parseJson
protected static Object parseJson(String jsonString) throws IllegalJsonType
- Throws:
IllegalJsonType
-
isAbsolutePath
protected boolean isAbsolutePath(String filePath)
-
-