Sleuth Kit Java Bindings (JNI)  4.8.0
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.CommunicationsUtils Class Reference

Static Public Member Functions

static String normalizeEmailAddress (String emailAddress) throws TskCoreException
 
static String normalizePhoneNum (String phoneNum) throws TskCoreException
 

Detailed Description

Provides general utility methods related to communications artifacts.

Definition at line 27 of file CommunicationsUtils.java.

Member Function Documentation

static String org.sleuthkit.datamodel.CommunicationsUtils.normalizeEmailAddress ( String  emailAddress) throws TskCoreException
static

Checks if the given string is a valid email address. Normalizes the given email address by converting it to lowercase.

Parameters
emailAddressThe string to be checked and normalized.
Returns
The normalized email address.
Exceptions
TskCoreExceptionIf the given string is not a valid email address.

Definition at line 64 of file CommunicationsUtils.java.

static String org.sleuthkit.datamodel.CommunicationsUtils.normalizePhoneNum ( String  phoneNum) throws TskCoreException
static

Checks if the given string may be a phone number. Normalize the phone number by removing all non numeric characters, except for leading +.

Parameters
phoneNumThe string to check and normalize.
Returns
The normalized phone number.
Exceptions
TskCoreExceptionIf the given string is not a valid phone number.

Definition at line 47 of file CommunicationsUtils.java.


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

Copyright © 2011-2020 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.