-
public class BacktraceDatabaseRecord
-
-
Field Summary
Fields Modifier and Type Field Description public UUIDidpublic transient booleanlockedprivate StringrecordPathprivate StringdiagnosticDataPathprivate StringreportPathprivate longsize
-
Constructor Summary
Constructors Constructor Description BacktraceDatabaseRecord(BacktraceData data, String path)
-
Method Summary
Modifier and Type Method Description StringgetRecordPath()StringgetDiagnosticDataPath()StringgetReportPath()longgetSize()voidsetSize(long size)static BacktraceDatabaseRecordreadFromFile(File file)Read single record from file BacktraceDatagetBacktraceData(Context context)Get valid BacktraceData from current record booleansave()Save data to internal app storage booleanvalid()Check if all necessary files declared on record exists voiddelete()Delete all record files booleanclose()-
-
Constructor Detail
-
BacktraceDatabaseRecord
BacktraceDatabaseRecord(BacktraceData data, String path)
-
-
Method Detail
-
getRecordPath
String getRecordPath()
-
getDiagnosticDataPath
String getDiagnosticDataPath()
-
getReportPath
String getReportPath()
-
getSize
long getSize()
-
setSize
void setSize(long size)
-
readFromFile
static BacktraceDatabaseRecord readFromFile(File file)
Read single record from file
- Parameters:
file- current file
-
getBacktraceData
BacktraceData getBacktraceData(Context context)
Get valid BacktraceData from current record
-
save
boolean save()
Save data to internal app storage
-
valid
boolean valid()
Check if all necessary files declared on record exists
-
delete
void delete()
Delete all record files
-
close
boolean close()
-
-
-
-