Package 

Class CrashReportFileNameParser


  • 
    public final class CrashReportFileNameParser
    
                        

    Responsible for determining the state of a Crash Report based on its file name.

    • Method Summary

      Modifier and Type Method Description
      final Boolean isSilent(String reportFileName) Guess that a report is silent from its file name.
      final Boolean isApproved(String reportFileName) Returns true if the report is considered as approved.
      final Calendar getTimestamp(String reportFileName) Gets the timestamp of a report from its name
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CrashReportFileNameParser

        CrashReportFileNameParser()
    • Method Detail

      • isSilent

         final Boolean isSilent(String reportFileName)

        Guess that a report is silent from its file name.

        Parameters:
        reportFileName - Name of the report to check whether it should be sent silently.
      • isApproved

        @Deprecated(message = use {@link ReportLocator#getApprovedReports()} and {@link ReportLocator#getUnapprovedReports()} instead) final Boolean isApproved(String reportFileName)

        Returns true if the report is considered as approved.

        This includes:

        • Reports which were pending when the user agreed to send a report in the NOTIFICATION mode Dialog.

        • Explicit silent reports

        Parameters:
        reportFileName - Name of report to check whether it is approved to be sent.
      • getTimestamp

         final Calendar getTimestamp(String reportFileName)

        Gets the timestamp of a report from its name

        Parameters:
        reportFileName - Name of the report to get the timestamp from.