AutopsySLogVizModule/src/AutopsySLogVizModule/DataContentViewerSlogViz.java
/**
    * Checks, wether a viewing type of file with this module is supported. The module supports the same file types as SLogViz does.
    * 
    * @param node the {@link Node} of the file the support has to be checked for
    * @return true, if the type of file is supported, else false
    * 
    * @see Node
    */
Checks, wether a viewing type of file with this module is supported. The module supports the same file types as SLogViz does.

@param node the  Node of the file the support has to be checked for
@return true, if the type of file is supported, else false

@see Node
Checks wether a viewing type of file with this module is supported . The module supports the same file types as SLogViz does . @param node the Node of the file the support has to be checked for @return true if the type of file is supported else false @see Node
@Override
    public boolean isSupported(Node node) {
        if (node == null) {
            return false;
        }
        org.sleuthkit.datamodel.AbstractFile abstractFile = node.getLookup().lookup(AbstractFile.class);
        if(abstractFile == null){
            return false;
        }
        if(node.getShortDescription().startsWith("Web History")){
            return false;
        }
        String fileName = abstractFile.getName();
        boolean matches = fileName.matches("^.*log\\.?\\d*\\.?(gz)?$") || fileName.matches("^.*\\.evtx$") || fileName.matches("^.*places.*\\.sqlite$") || fileName.matches("^.*History$");
        return abstractFile.getSize() > 0 && !abstractFile.isDir() && matches;
    }
@ Override public boolean isSupported ( Node node ) { if ( node == null ) { return false ; } org . sleuthkit . datamodel . AbstractFile abstractFile = node . getLookup ( ) . lookup ( AbstractFile . class ) ; if ( abstractFile == null ) { return false ; } if ( node . getShortDescription ( ) . startsWith ( "Web History" ) ) { return false ; } String fileName = abstractFile . getName ( ) ; boolean matches = fileName . matches ( "^.*log\\.?\\d*\\.?(gz)?$" ) || fileName . matches ( "^.*\\.evtx$" ) || fileName . matches ( "^.*places.*\\.sqlite$" ) || fileName . matches ( "^.*History$" ) ; return abstractFile . getSize ( ) > 0 && ! abstractFile . isDir ( ) && matches ; }
Checks, wether a viewing type of file with this module is supported.
Checks wether a viewing type of file with this module is supported .
//This check is to avoid that this module wrongly allows the plotting of artifacts produced by the "File Type Identifier" ingest module of Autopsy