mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Update module dependencies for release 4.4.0
This commit is contained in:
parent
0411893070
commit
3665e30870
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||
OpenIDE-Module: org.sleuthkit.autopsy.core/10
|
||||
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/core/Bundle.properties
|
||||
OpenIDE-Module-Layer: org/sleuthkit/autopsy/core/layer.xml
|
||||
OpenIDE-Module-Implementation-Version: 18
|
||||
OpenIDE-Module-Implementation-Version: 19
|
||||
OpenIDE-Module-Requires: org.openide.windows.WindowManager
|
||||
AutoUpdate-Show-In-Client: true
|
||||
AutoUpdate-Essential-Module: true
|
||||
|
@ -138,7 +138,7 @@ public class ImageUtils {
|
||||
SUPPORTED_IMAGE_EXTENSIONS.addAll(Arrays.asList(ImageIO.getReaderFileSuffixes()));
|
||||
SUPPORTED_IMAGE_EXTENSIONS.add("tec"); // Add JFIF .tec files
|
||||
SUPPORTED_IMAGE_EXTENSIONS.removeIf("db"::equals); // remove db files
|
||||
|
||||
|
||||
SUPPORTED_IMAGE_MIME_TYPES = new TreeSet<>(Arrays.asList(ImageIO.getReaderMIMETypes()));
|
||||
/*
|
||||
* special cases and variants that we support, but don't get registered
|
||||
@ -213,7 +213,7 @@ public class ImageUtils {
|
||||
* @param file the AbstractFile to test
|
||||
*
|
||||
* @return true if the file is an image we can read and generate thumbnail
|
||||
* for.
|
||||
* for.
|
||||
*/
|
||||
public static boolean isImageThumbnailSupported(AbstractFile file) {
|
||||
return isMediaThumbnailSupported(file, "image/", SUPPORTED_IMAGE_MIME_TYPES, SUPPORTED_IMAGE_EXTENSIONS) || hasImageFileHeader(file);//NON-NLS
|
||||
@ -239,17 +239,16 @@ public class ImageUtils {
|
||||
* VideoUtils both implement/extend some base interface/abstract class. That
|
||||
* would be the natural place to put this.
|
||||
*
|
||||
* @param file the AbstractFile to test
|
||||
* @param mimeTypePrefix a MIME 'top-level type name' such as "image/",
|
||||
* including the "/". In addition to the list of
|
||||
* supported MIME types, any type that starts with
|
||||
* this prefix will be regarded as supported
|
||||
* @param file the AbstractFile to test
|
||||
* @param mimeTypePrefix a MIME 'top-level type name' such as "image/",
|
||||
* including the "/". In addition to the list of supported MIME types, any
|
||||
* type that starts with this prefix will be regarded as supported
|
||||
* @param supportedMimeTypes a collection of mimetypes that are supported
|
||||
* @param supportedExtension a collection of extensions that are supported
|
||||
*
|
||||
* @return true if a thumbnail can be generated for the given file based on
|
||||
* the given MIME type prefix and lists of supported MIME types and
|
||||
* extensions
|
||||
* the given MIME type prefix and lists of supported MIME types and
|
||||
* extensions
|
||||
*/
|
||||
static boolean isMediaThumbnailSupported(AbstractFile file, String mimeTypePrefix, final Collection<String> supportedMimeTypes, final List<String> supportedExtension) {
|
||||
if (false == file.isFile() || file.getSize() <= 0) {
|
||||
@ -283,7 +282,7 @@ public class ImageUtils {
|
||||
* @return a FileTypeDetector
|
||||
*
|
||||
* @throws FileTypeDetectorInitException if initializing the
|
||||
* FileTypeDetector failed.
|
||||
* FileTypeDetector failed.
|
||||
*/
|
||||
synchronized private static FileTypeDetector getFileTypeDetector() throws FileTypeDetector.FileTypeDetectorInitException {
|
||||
if (fileTypeDetector == null) {
|
||||
@ -296,11 +295,11 @@ public class ImageUtils {
|
||||
* Get a thumbnail of a specified size for the given image. Generates the
|
||||
* thumbnail if it is not already cached.
|
||||
*
|
||||
* @param content the content to generate a thumbnail for
|
||||
* @param content the content to generate a thumbnail for
|
||||
* @param iconSize the size (one side of a square) in pixels to generate
|
||||
*
|
||||
* @return A thumbnail for the given image or a default one if there was a
|
||||
* problem making a thumbnail.
|
||||
* problem making a thumbnail.
|
||||
*/
|
||||
public static BufferedImage getThumbnail(Content content, int iconSize) {
|
||||
if (content instanceof AbstractFile) {
|
||||
@ -339,7 +338,7 @@ public class ImageUtils {
|
||||
* @param file The AbstractFile to get a stream for.
|
||||
*
|
||||
* @return A BufferedInputStream wrapped around a ReadContentStream for the
|
||||
* given AbstractFile
|
||||
* given AbstractFile
|
||||
*/
|
||||
private static BufferedInputStream getBufferedReadContentStream(AbstractFile file) {
|
||||
return new BufferedInputStream(new ReadContentInputStream(file));
|
||||
@ -349,11 +348,11 @@ public class ImageUtils {
|
||||
* Get a thumbnail of a specified size for the given image. Generates the
|
||||
* thumbnail if it is not already cached.
|
||||
*
|
||||
* @param content the content to generate a thumbnail for
|
||||
* @param content the content to generate a thumbnail for
|
||||
* @param iconSize the size (one side of a square) in pixels to generate
|
||||
*
|
||||
* @return File object for cached image. Is guaranteed to exist, as long as
|
||||
* there was not an error generating or saving the thumbnail.
|
||||
* there was not an error generating or saving the thumbnail.
|
||||
*/
|
||||
@Nullable
|
||||
public static File getCachedThumbnailFile(Content content, int iconSize) {
|
||||
@ -368,8 +367,8 @@ public class ImageUtils {
|
||||
* @param fileID the fileID to get the cached thumbnail location for
|
||||
*
|
||||
* @return A File object representing the location of the cached thumbnail.
|
||||
* This file may not actually exist(yet). Returns null if there was
|
||||
* any problem getting the file, such as no case was open.
|
||||
* This file may not actually exist(yet). Returns null if there was any
|
||||
* problem getting the file, such as no case was open.
|
||||
*/
|
||||
private static File getCachedThumbnailLocation(long fileID) {
|
||||
return cacheFileMap.computeIfAbsent(fileID, id -> {
|
||||
@ -427,7 +426,7 @@ public class ImageUtils {
|
||||
* @param file the AbstractFile to parse
|
||||
*
|
||||
* @return Offset of first Start Of Image marker, or 0 if none found. This
|
||||
* will let ImageIO try to open it from offset 0.
|
||||
* will let ImageIO try to open it from offset 0.
|
||||
*/
|
||||
private static long getJfifStartOfImageOffset(AbstractFile file) {
|
||||
byte[] fileHeaderBuffer;
|
||||
@ -507,7 +506,7 @@ public class ImageUtils {
|
||||
* @return the width in pixels
|
||||
*
|
||||
* @throws IOException If the file is not a supported image or the width
|
||||
* could not be determined.
|
||||
* could not be determined.
|
||||
*/
|
||||
static public int getImageWidth(AbstractFile file) throws IOException {
|
||||
return getImageProperty(file,
|
||||
@ -524,7 +523,7 @@ public class ImageUtils {
|
||||
* @return the height in pixels
|
||||
*
|
||||
* @throws IOException If the file is not a supported image or the height
|
||||
* could not be determined.
|
||||
* could not be determined.
|
||||
*/
|
||||
static public int getImageHeight(AbstractFile file) throws IOException {
|
||||
return getImageProperty(file,
|
||||
@ -537,8 +536,8 @@ public class ImageUtils {
|
||||
/**
|
||||
* Functional interface for methods that extract a property out of an
|
||||
* ImageReader. Initially created to abstract over
|
||||
* {@link #getImageHeight(org.sleuthkit.datamodel.AbstractFile)} and
|
||||
* {@link #getImageWidth(org.sleuthkit.datamodel.AbstractFile)}
|
||||
* getImageHeight(org.sleuthkit.datamodel.AbstractFile) and
|
||||
* getImageWidth(org.sleuthkit.datamodel.AbstractFile)
|
||||
*
|
||||
* @param <T> The type of the property.
|
||||
*/
|
||||
@ -553,18 +552,17 @@ public class ImageUtils {
|
||||
* public methods that pull particular (usually meta-)data out of a image
|
||||
* file.
|
||||
*
|
||||
* @param file the file to extract the data from
|
||||
* @param errorTemplate a message template used to log errors. Should
|
||||
* take one parameter: the file's unique path or
|
||||
* name.
|
||||
* @param file the file to extract the data from
|
||||
* @param errorTemplate a message template used to log errors. Should take
|
||||
* one parameter: the file's unique path or name.
|
||||
* @param propertyExtractor an implementation of {@link PropertyExtractor}
|
||||
* used to retrieve the specific property.
|
||||
* used to retrieve the specific property.
|
||||
*
|
||||
* @return the the value of the property extracted by the given
|
||||
* propertyExtractor
|
||||
* propertyExtractor
|
||||
*
|
||||
* @throws IOException if there was a problem reading the property from the
|
||||
* file.
|
||||
* file.
|
||||
*
|
||||
* @see PropertyExtractor
|
||||
* @see #getImageHeight(org.sleuthkit.datamodel.AbstractFile)
|
||||
@ -608,8 +606,8 @@ public class ImageUtils {
|
||||
* but is not started automatically. Clients are responsible for running the
|
||||
* task, monitoring its progress, and using its result.
|
||||
*
|
||||
* @param file The file to create a thumbnail for.
|
||||
* @param iconSize The size of the thumbnail.
|
||||
* @param file The file to create a thumbnail for.
|
||||
* @param iconSize The size of the thumbnail.
|
||||
* @param defaultOnFailure Whether or not to default on failure.
|
||||
*
|
||||
* @return a new Task that returns a thumbnail as its result.
|
||||
@ -978,10 +976,10 @@ public class ImageUtils {
|
||||
* @param iconSize
|
||||
*
|
||||
* @return a thumbnail for the given image or a default one if there was a
|
||||
* problem making a thumbnail.
|
||||
* problem making a thumbnail.
|
||||
*
|
||||
* @deprecated use {@link #getThumbnail(org.sleuthkit.datamodel.Content, int)
|
||||
* } instead.
|
||||
* @deprecated use getThumbnail(org.sleuthkit.datamodel.Content, int)
|
||||
* instead.
|
||||
*/
|
||||
@Nonnull
|
||||
@Deprecated
|
||||
@ -997,10 +995,10 @@ public class ImageUtils {
|
||||
* @param iconSize
|
||||
*
|
||||
* @return File object for cached image. Is guaranteed to exist, as long as
|
||||
* there was not an error generating or saving the thumbnail.
|
||||
* there was not an error generating or saving the thumbnail.
|
||||
*
|
||||
* @deprecated use {@link #getCachedThumbnailFile(org.sleuthkit.datamodel.Content, int)
|
||||
* } instead.
|
||||
* @deprecated use getCachedThumbnailFile(org.sleuthkit.datamodel.Content,
|
||||
* int) instead.
|
||||
*
|
||||
*/
|
||||
@Nullable
|
||||
|
@ -1,6 +1,7 @@
|
||||
Manifest-Version: 1.0
|
||||
AutoUpdate-Show-In-Client: true
|
||||
OpenIDE-Module: org.sleuthkit.autopsy.experimental
|
||||
OpenIDE-Module: org.sleuthkit.autopsy.experimental/10
|
||||
OpenIDE-Module-Implementation-Version: 2
|
||||
OpenIDE-Module-Layer: org/sleuthkit/autopsy/experimental/autoingest/layer.xml
|
||||
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/experimental/autoingest/Bundle.properties
|
||||
OpenIDE-Module-Specification-Version: 1.0
|
||||
|
@ -1,5 +1,5 @@
|
||||
Manifest-Version: 1.0
|
||||
OpenIDE-Module: org.sleuthkit.autopsy.imagegallery/2
|
||||
OpenIDE-Module-Implementation-Version: 2
|
||||
OpenIDE-Module-Implementation-Version: 3
|
||||
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/imagegallery/Bundle.properties
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Manifest-Version: 1.0
|
||||
AutoUpdate-Show-In-Client: true
|
||||
OpenIDE-Module: org.sleuthkit.autopsy.keywordsearch/6
|
||||
OpenIDE-Module-Implementation-Version: 16
|
||||
OpenIDE-Module-Implementation-Version: 17
|
||||
OpenIDE-Module-Install: org/sleuthkit/autopsy/keywordsearch/Installer.class
|
||||
OpenIDE-Module-Layer: org/sleuthkit/autopsy/keywordsearch/layer.xml
|
||||
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/keywordsearch/Bundle.properties
|
||||
|
@ -63,6 +63,24 @@
|
||||
<specification-version>10.7</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.sleuthkit.autopsy.corelibs</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<release-version>3</release-version>
|
||||
<specification-version>1.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.sleuthkit.autopsy.keywordsearch</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<release-version>6</release-version>
|
||||
<specification-version>6.3</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
</module-dependencies>
|
||||
<public-packages>
|
||||
<package>org.sleuthkit.autopsy.recentactivity</package>
|
||||
|
@ -1,6 +1,6 @@
|
||||
Manifest-Version: 1.0
|
||||
AutoUpdate-Show-In-Client: false
|
||||
OpenIDE-Module: org.sleuthkit.autopsy.testing/3
|
||||
OpenIDE-Module-Implementation-Version: 9
|
||||
OpenIDE-Module-Implementation-Version: 10
|
||||
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/testing/Bundle.properties
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user