Package com.codedjson.utils
Class Base
- java.lang.Object
-
- com.codedjson.utils.Base
-
-
Field Summary
Fields Modifier and Type Field Description protected FilebaseFileObjprotected String[]commaSeparatedLinesprotected List<String>commentedLinesprotected Stringcontentprotected StringfilePathprotected com.google.gson.Gsongsonprotected booleanisContextConvertedprotected booleanisFilePathprotected booleanisInjectDoneprotected booleanisInjectExist
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringappendPath(String parent, String... paths)protected StringgetDirectory(String absFilePath)StringgetFullPath()protected StringgetType(Object var)protected booleanisAbsolutePath(String filePath)protected static ObjectparseJson(String jsonString)static Stringread(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)
-
-