Skip to content

Commit 3665e30

Browse files
committed
Update module dependencies for release 4.4.0
1 parent 0411893 commit 3665e30

File tree

7 files changed

+59
-42
lines changed

7 files changed

+59
-42
lines changed

Core/manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
OpenIDE-Module: org.sleuthkit.autopsy.core/10
33
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/core/Bundle.properties
44
OpenIDE-Module-Layer: org/sleuthkit/autopsy/core/layer.xml
5-
OpenIDE-Module-Implementation-Version: 18
5+
OpenIDE-Module-Implementation-Version: 19
66
OpenIDE-Module-Requires: org.openide.windows.WindowManager
77
AutoUpdate-Show-In-Client: true
88
AutoUpdate-Essential-Module: true

Core/src/org/sleuthkit/autopsy/coreutils/ImageUtils.java

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public class ImageUtils {
138138
SUPPORTED_IMAGE_EXTENSIONS.addAll(Arrays.asList(ImageIO.getReaderFileSuffixes()));
139139
SUPPORTED_IMAGE_EXTENSIONS.add("tec"); // Add JFIF .tec files
140140
SUPPORTED_IMAGE_EXTENSIONS.removeIf("db"::equals); // remove db files
141-
141+
142142
SUPPORTED_IMAGE_MIME_TYPES = new TreeSet<>(Arrays.asList(ImageIO.getReaderMIMETypes()));
143143
/*
144144
* special cases and variants that we support, but don't get registered
@@ -213,7 +213,7 @@ public static boolean thumbnailSupported(Content content) {
213213
* @param file the AbstractFile to test
214214
*
215215
* @return true if the file is an image we can read and generate thumbnail
216-
* for.
216+
* for.
217217
*/
218218
public static boolean isImageThumbnailSupported(AbstractFile file) {
219219
return isMediaThumbnailSupported(file, "image/", SUPPORTED_IMAGE_MIME_TYPES, SUPPORTED_IMAGE_EXTENSIONS) || hasImageFileHeader(file);//NON-NLS
@@ -239,17 +239,16 @@ public static boolean isGIF(AbstractFile file) {
239239
* VideoUtils both implement/extend some base interface/abstract class. That
240240
* would be the natural place to put this.
241241
*
242-
* @param file the AbstractFile to test
243-
* @param mimeTypePrefix a MIME 'top-level type name' such as "image/",
244-
* including the "/". In addition to the list of
245-
* supported MIME types, any type that starts with
246-
* this prefix will be regarded as supported
242+
* @param file the AbstractFile to test
243+
* @param mimeTypePrefix a MIME 'top-level type name' such as "image/",
244+
* including the "/". In addition to the list of supported MIME types, any
245+
* type that starts with this prefix will be regarded as supported
247246
* @param supportedMimeTypes a collection of mimetypes that are supported
248247
* @param supportedExtension a collection of extensions that are supported
249248
*
250249
* @return true if a thumbnail can be generated for the given file based on
251-
* the given MIME type prefix and lists of supported MIME types and
252-
* extensions
250+
* the given MIME type prefix and lists of supported MIME types and
251+
* extensions
253252
*/
254253
static boolean isMediaThumbnailSupported(AbstractFile file, String mimeTypePrefix, final Collection<String> supportedMimeTypes, final List<String> supportedExtension) {
255254
if (false == file.isFile() || file.getSize() <= 0) {
@@ -283,7 +282,7 @@ static boolean isMediaThumbnailSupported(AbstractFile file, String mimeTypePrefi
283282
* @return a FileTypeDetector
284283
*
285284
* @throws FileTypeDetectorInitException if initializing the
286-
* FileTypeDetector failed.
285+
* FileTypeDetector failed.
287286
*/
288287
synchronized private static FileTypeDetector getFileTypeDetector() throws FileTypeDetector.FileTypeDetectorInitException {
289288
if (fileTypeDetector == null) {
@@ -296,11 +295,11 @@ synchronized private static FileTypeDetector getFileTypeDetector() throws FileTy
296295
* Get a thumbnail of a specified size for the given image. Generates the
297296
* thumbnail if it is not already cached.
298297
*
299-
* @param content the content to generate a thumbnail for
298+
* @param content the content to generate a thumbnail for
300299
* @param iconSize the size (one side of a square) in pixels to generate
301300
*
302301
* @return A thumbnail for the given image or a default one if there was a
303-
* problem making a thumbnail.
302+
* problem making a thumbnail.
304303
*/
305304
public static BufferedImage getThumbnail(Content content, int iconSize) {
306305
if (content instanceof AbstractFile) {
@@ -339,7 +338,7 @@ public static BufferedImage getThumbnail(Content content, int iconSize) {
339338
* @param file The AbstractFile to get a stream for.
340339
*
341340
* @return A BufferedInputStream wrapped around a ReadContentStream for the
342-
* given AbstractFile
341+
* given AbstractFile
343342
*/
344343
private static BufferedInputStream getBufferedReadContentStream(AbstractFile file) {
345344
return new BufferedInputStream(new ReadContentInputStream(file));
@@ -349,11 +348,11 @@ private static BufferedInputStream getBufferedReadContentStream(AbstractFile fil
349348
* Get a thumbnail of a specified size for the given image. Generates the
350349
* thumbnail if it is not already cached.
351350
*
352-
* @param content the content to generate a thumbnail for
351+
* @param content the content to generate a thumbnail for
353352
* @param iconSize the size (one side of a square) in pixels to generate
354353
*
355354
* @return File object for cached image. Is guaranteed to exist, as long as
356-
* there was not an error generating or saving the thumbnail.
355+
* there was not an error generating or saving the thumbnail.
357356
*/
358357
@Nullable
359358
public static File getCachedThumbnailFile(Content content, int iconSize) {
@@ -368,8 +367,8 @@ public static File getCachedThumbnailFile(Content content, int iconSize) {
368367
* @param fileID the fileID to get the cached thumbnail location for
369368
*
370369
* @return A File object representing the location of the cached thumbnail.
371-
* This file may not actually exist(yet). Returns null if there was
372-
* any problem getting the file, such as no case was open.
370+
* This file may not actually exist(yet). Returns null if there was any
371+
* problem getting the file, such as no case was open.
373372
*/
374373
private static File getCachedThumbnailLocation(long fileID) {
375374
return cacheFileMap.computeIfAbsent(fileID, id -> {
@@ -427,7 +426,7 @@ public static boolean isJpegFileHeader(AbstractFile file) {
427426
* @param file the AbstractFile to parse
428427
*
429428
* @return Offset of first Start Of Image marker, or 0 if none found. This
430-
* will let ImageIO try to open it from offset 0.
429+
* will let ImageIO try to open it from offset 0.
431430
*/
432431
private static long getJfifStartOfImageOffset(AbstractFile file) {
433432
byte[] fileHeaderBuffer;
@@ -507,7 +506,7 @@ private static byte[] readHeader(AbstractFile file, int buffLength) throws TskCo
507506
* @return the width in pixels
508507
*
509508
* @throws IOException If the file is not a supported image or the width
510-
* could not be determined.
509+
* could not be determined.
511510
*/
512511
static public int getImageWidth(AbstractFile file) throws IOException {
513512
return getImageProperty(file,
@@ -524,7 +523,7 @@ static public int getImageWidth(AbstractFile file) throws IOException {
524523
* @return the height in pixels
525524
*
526525
* @throws IOException If the file is not a supported image or the height
527-
* could not be determined.
526+
* could not be determined.
528527
*/
529528
static public int getImageHeight(AbstractFile file) throws IOException {
530529
return getImageProperty(file,
@@ -537,8 +536,8 @@ static public int getImageHeight(AbstractFile file) throws IOException {
537536
/**
538537
* Functional interface for methods that extract a property out of an
539538
* ImageReader. Initially created to abstract over
540-
* {@link #getImageHeight(org.sleuthkit.datamodel.AbstractFile)} and
541-
* {@link #getImageWidth(org.sleuthkit.datamodel.AbstractFile)}
539+
* getImageHeight(org.sleuthkit.datamodel.AbstractFile) and
540+
* getImageWidth(org.sleuthkit.datamodel.AbstractFile)
542541
*
543542
* @param <T> The type of the property.
544543
*/
@@ -553,18 +552,17 @@ private static interface PropertyExtractor<T> {
553552
* public methods that pull particular (usually meta-)data out of a image
554553
* file.
555554
*
556-
* @param file the file to extract the data from
557-
* @param errorTemplate a message template used to log errors. Should
558-
* take one parameter: the file's unique path or
559-
* name.
555+
* @param file the file to extract the data from
556+
* @param errorTemplate a message template used to log errors. Should take
557+
* one parameter: the file's unique path or name.
560558
* @param propertyExtractor an implementation of {@link PropertyExtractor}
561-
* used to retrieve the specific property.
559+
* used to retrieve the specific property.
562560
*
563561
* @return the the value of the property extracted by the given
564-
* propertyExtractor
562+
* propertyExtractor
565563
*
566564
* @throws IOException if there was a problem reading the property from the
567-
* file.
565+
* file.
568566
*
569567
* @see PropertyExtractor
570568
* @see #getImageHeight(org.sleuthkit.datamodel.AbstractFile)
@@ -608,8 +606,8 @@ private static <T> T getImageProperty(AbstractFile file, final String errorTempl
608606
* but is not started automatically. Clients are responsible for running the
609607
* task, monitoring its progress, and using its result.
610608
*
611-
* @param file The file to create a thumbnail for.
612-
* @param iconSize The size of the thumbnail.
609+
* @param file The file to create a thumbnail for.
610+
* @param iconSize The size of the thumbnail.
613611
* @param defaultOnFailure Whether or not to default on failure.
614612
*
615613
* @return a new Task that returns a thumbnail as its result.
@@ -978,10 +976,10 @@ public static File getFile(long id) {
978976
* @param iconSize
979977
*
980978
* @return a thumbnail for the given image or a default one if there was a
981-
* problem making a thumbnail.
979+
* problem making a thumbnail.
982980
*
983-
* @deprecated use {@link #getThumbnail(org.sleuthkit.datamodel.Content, int)
984-
* } instead.
981+
* @deprecated use getThumbnail(org.sleuthkit.datamodel.Content, int)
982+
* instead.
985983
*/
986984
@Nonnull
987985
@Deprecated
@@ -997,10 +995,10 @@ public static BufferedImage getIcon(Content content, int iconSize) {
997995
* @param iconSize
998996
*
999997
* @return File object for cached image. Is guaranteed to exist, as long as
1000-
* there was not an error generating or saving the thumbnail.
998+
* there was not an error generating or saving the thumbnail.
1001999
*
1002-
* @deprecated use {@link #getCachedThumbnailFile(org.sleuthkit.datamodel.Content, int)
1003-
* } instead.
1000+
* @deprecated use getCachedThumbnailFile(org.sleuthkit.datamodel.Content,
1001+
* int) instead.
10041002
*
10051003
*/
10061004
@Nullable

Experimental/manifest.mf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Manifest-Version: 1.0
22
AutoUpdate-Show-In-Client: true
3-
OpenIDE-Module: org.sleuthkit.autopsy.experimental
3+
OpenIDE-Module: org.sleuthkit.autopsy.experimental/10
4+
OpenIDE-Module-Implementation-Version: 2
45
OpenIDE-Module-Layer: org/sleuthkit/autopsy/experimental/autoingest/layer.xml
56
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/experimental/autoingest/Bundle.properties
67
OpenIDE-Module-Specification-Version: 1.0

ImageGallery/manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Manifest-Version: 1.0
22
OpenIDE-Module: org.sleuthkit.autopsy.imagegallery/2
3-
OpenIDE-Module-Implementation-Version: 2
3+
OpenIDE-Module-Implementation-Version: 3
44
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/imagegallery/Bundle.properties
55

KeywordSearch/manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Manifest-Version: 1.0
22
AutoUpdate-Show-In-Client: true
33
OpenIDE-Module: org.sleuthkit.autopsy.keywordsearch/6
4-
OpenIDE-Module-Implementation-Version: 16
4+
OpenIDE-Module-Implementation-Version: 17
55
OpenIDE-Module-Install: org/sleuthkit/autopsy/keywordsearch/Installer.class
66
OpenIDE-Module-Layer: org/sleuthkit/autopsy/keywordsearch/layer.xml
77
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/keywordsearch/Bundle.properties

RecentActivity/nbproject/project.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,24 @@
6363
<specification-version>10.7</specification-version>
6464
</run-dependency>
6565
</dependency>
66+
<dependency>
67+
<code-name-base>org.sleuthkit.autopsy.corelibs</code-name-base>
68+
<build-prerequisite/>
69+
<compile-dependency/>
70+
<run-dependency>
71+
<release-version>3</release-version>
72+
<specification-version>1.1</specification-version>
73+
</run-dependency>
74+
</dependency>
75+
<dependency>
76+
<code-name-base>org.sleuthkit.autopsy.keywordsearch</code-name-base>
77+
<build-prerequisite/>
78+
<compile-dependency/>
79+
<run-dependency>
80+
<release-version>6</release-version>
81+
<specification-version>6.3</specification-version>
82+
</run-dependency>
83+
</dependency>
6684
</module-dependencies>
6785
<public-packages>
6886
<package>org.sleuthkit.autopsy.recentactivity</package>

Testing/manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Manifest-Version: 1.0
22
AutoUpdate-Show-In-Client: false
33
OpenIDE-Module: org.sleuthkit.autopsy.testing/3
4-
OpenIDE-Module-Implementation-Version: 9
4+
OpenIDE-Module-Implementation-Version: 10
55
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/testing/Bundle.properties
66

0 commit comments

Comments
 (0)