Autopsy  4.6.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.contentviewers.SQLiteViewer Class Reference

Inherits JPanel, and org.sleuthkit.autopsy.corecomponentinterfaces.FileTypeViewer.

Public Member Functions

 SQLiteViewer ()
 
Component getComponent ()
 
List< String > getSupportedMIMETypes ()
 
void resetComponent ()
 
void setFile (AbstractFile file)
 

Static Public Attributes

static final String[] SUPPORTED_MIMETYPES = new String[]{"application/x-sqlite3"}
 

Private Member Functions

void findAndCopySQLiteMetaFile (AbstractFile sqliteFile, String metaFileName) throws NoCurrentCaseException, TskCoreException, IOException
 
Map< String, String > getTables () throws SQLException
 
void initComponents ()
 
void nextPageButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void prevPageButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void processSQLiteFile ()
 
void readTable (String tableName, int startRow, int numRowsToRead)
 
ArrayList< Map< String, Object > > resultSetToArrayList (ResultSet rs) throws SQLException
 
void selectTable (String tableName)
 
void tablesDropdownListActionPerformed (java.awt.event.ActionEvent evt)
 

Private Attributes

Connection connection
 
int currPage = 0
 
javax.swing.JLabel currPageLabel
 
javax.swing.JPanel jHdrPanel
 
javax.swing.JLabel jLabel1
 
javax.swing.JLabel jLabel2
 
javax.swing.JLabel jLabel3
 
javax.swing.JPanel jTableDataPanel
 
javax.swing.JButton nextPageButton
 
javax.swing.JTextField numEntriesField
 
javax.swing.JLabel numPagesLabel
 
int numRows
 
javax.swing.JButton prevPageButton
 
final SQLiteTableView selectedTableView = new SQLiteTableView()
 
AbstractFile sqliteDbFile
 
javax.swing.JComboBox< String > tablesDropdownList
 
File tmpDbFile
 

Static Private Attributes

static final Logger logger = Logger.getLogger(FileViewer.class.getName())
 
static final int ROWS_PER_PAGE = 100
 
static final long serialVersionUID = 1L
 

Detailed Description

A file content viewer for SQLite database files.

Definition at line 59 of file SQLiteViewer.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.contentviewers.SQLiteViewer.SQLiteViewer ( )

Constructs a file content viewer for SQLite database files.

Definition at line 75 of file SQLiteViewer.java.

References org.sleuthkit.autopsy.contentviewers.SQLiteViewer.initComponents(), and org.sleuthkit.autopsy.contentviewers.SQLiteViewer.jTableDataPanel.

Member Function Documentation

void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.findAndCopySQLiteMetaFile ( AbstractFile  sqliteFile,
String  metaFileName 
) throws NoCurrentCaseException, TskCoreException, IOException
private
Component org.sleuthkit.autopsy.contentviewers.SQLiteViewer.getComponent ( )

Returns panel

Implements org.sleuthkit.autopsy.corecomponentinterfaces.FileTypeViewer.

Definition at line 282 of file SQLiteViewer.java.

List<String> org.sleuthkit.autopsy.contentviewers.SQLiteViewer.getSupportedMIMETypes ( )

Returns list of MIME types supported by this viewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.FileTypeViewer.

Definition at line 269 of file SQLiteViewer.java.

Map<String, String> org.sleuthkit.autopsy.contentviewers.SQLiteViewer.getTables ( ) throws SQLException
private

Gets the table names and schemas from the SQLite database file.

Returns
A mapping of table names to SQL CREATE TABLE statements.

Definition at line 395 of file SQLiteViewer.java.

Referenced by org.sleuthkit.autopsy.contentviewers.SQLiteViewer.processSQLiteFile().

void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.initComponents ( )
private
void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.nextPageButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.prevPageButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.processSQLiteFile ( )
private
void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.readTable ( String  tableName,
int  startRow,
int  numRowsToRead 
)
private
void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.resetComponent ( )
ArrayList<Map<String, Object> > org.sleuthkit.autopsy.contentviewers.SQLiteViewer.resultSetToArrayList ( ResultSet  rs) throws SQLException
private
void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.selectTable ( String  tableName)
private
void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.setFile ( AbstractFile  file)

Display the given file's content in the view panel

Implements org.sleuthkit.autopsy.corecomponentinterfaces.FileTypeViewer.

Definition at line 274 of file SQLiteViewer.java.

References org.sleuthkit.autopsy.contentviewers.SQLiteViewer.processSQLiteFile().

void org.sleuthkit.autopsy.contentviewers.SQLiteViewer.tablesDropdownListActionPerformed ( java.awt.event.ActionEvent  evt)
private

Member Data Documentation

Connection org.sleuthkit.autopsy.contentviewers.SQLiteViewer.connection
private

Definition at line 68 of file SQLiteViewer.java.

int org.sleuthkit.autopsy.contentviewers.SQLiteViewer.currPage = 0
private

Definition at line 70 of file SQLiteViewer.java.

javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.SQLiteViewer.currPageLabel
private
javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.SQLiteViewer.jHdrPanel
private
javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.SQLiteViewer.jLabel1
private
javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.SQLiteViewer.jLabel2
private
javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.SQLiteViewer.jLabel3
private
javax.swing.JPanel org.sleuthkit.autopsy.contentviewers.SQLiteViewer.jTableDataPanel
private
final Logger org.sleuthkit.autopsy.contentviewers.SQLiteViewer.logger = Logger.getLogger(FileViewer.class.getName())
staticprivate

Definition at line 64 of file SQLiteViewer.java.

javax.swing.JButton org.sleuthkit.autopsy.contentviewers.SQLiteViewer.nextPageButton
private
javax.swing.JTextField org.sleuthkit.autopsy.contentviewers.SQLiteViewer.numEntriesField
private
javax.swing.JLabel org.sleuthkit.autopsy.contentviewers.SQLiteViewer.numPagesLabel
private
int org.sleuthkit.autopsy.contentviewers.SQLiteViewer.numRows
private

Definition at line 69 of file SQLiteViewer.java.

javax.swing.JButton org.sleuthkit.autopsy.contentviewers.SQLiteViewer.prevPageButton
private
final int org.sleuthkit.autopsy.contentviewers.SQLiteViewer.ROWS_PER_PAGE = 100
staticprivate

Definition at line 63 of file SQLiteViewer.java.

final SQLiteTableView org.sleuthkit.autopsy.contentviewers.SQLiteViewer.selectedTableView = new SQLiteTableView()
private

Definition at line 65 of file SQLiteViewer.java.

final long org.sleuthkit.autopsy.contentviewers.SQLiteViewer.serialVersionUID = 1L
staticprivate

Definition at line 61 of file SQLiteViewer.java.

AbstractFile org.sleuthkit.autopsy.contentviewers.SQLiteViewer.sqliteDbFile
private

Definition at line 66 of file SQLiteViewer.java.

final String [] org.sleuthkit.autopsy.contentviewers.SQLiteViewer.SUPPORTED_MIMETYPES = new String[]{"application/x-sqlite3"}
static

Definition at line 62 of file SQLiteViewer.java.

javax.swing.JComboBox<String> org.sleuthkit.autopsy.contentviewers.SQLiteViewer.tablesDropdownList
private
File org.sleuthkit.autopsy.contentviewers.SQLiteViewer.tmpDbFile
private

Definition at line 67 of file SQLiteViewer.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2016 Basis Technology. Generated on: Mon May 7 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.