19 package org.sleuthkit.autopsy.datasourceprocessors.xry;
 
   24 final class XRYFileParserFactory {
 
   40     static XRYFileParser 
get(String reportType) {
 
   41         if (reportType == null) {
 
   42             throw new IllegalArgumentException(
"Report type cannot be null");
 
   45         switch (reportType.trim().toLowerCase()) {
 
   47                 return new XRYCallsFileParser();
 
   48             case "contacts/contacts":
 
   50                 return new XRYContactsFileParser();
 
   51             case "device/general information":
 
   52                 return new XRYDeviceGenInfoFileParser();
 
   54                 return new XRYMessagesFileParser();
 
   56                 return new XRYWebBookmarksFileParser();
 
   58                 throw new IllegalArgumentException(reportType + 
" not recognized.");
 
   68     static boolean supports(String reportType) {
 
   73         } 
catch (IllegalArgumentException ex) {
 
   79     private XRYFileParserFactory() {