mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-06 02:24:30 +00:00
Add license header and make python methods 'private'
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
"""
|
||||
Autopsy Forensic Browser
|
||||
|
||||
Copyright 2016 Basis Technology Corp.
|
||||
Contact: carrier <at> sleuthkit <dot> org
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
|
||||
from java.io import File
|
||||
from java.lang import Class
|
||||
from java.lang import ClassNotFoundException
|
||||
@@ -40,7 +59,7 @@ class TextMessageAnalyzer(general.AndroidComponentAnalyzer):
|
||||
try:
|
||||
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||
self.findTextsInDB(jFile.toString(), abstractFile)
|
||||
self.__findTextsInDB(jFile.toString(), abstractFile)
|
||||
except Exception as ex:
|
||||
self._logger.log(Level.SEVERE, "Error parsing text messages", ex)
|
||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||
@@ -48,7 +67,7 @@ class TextMessageAnalyzer(general.AndroidComponentAnalyzer):
|
||||
self._logger.log(Level.SEVERE, "Error finding text messages", ex)
|
||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||
|
||||
def findTextsInDB(self, databasePath, abstractFile):
|
||||
def __findTextsInDB(self, databasePath, abstractFile):
|
||||
if not databasePath:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user