From 307685636557067eb1554def96895abadca2b2fa Mon Sep 17 00:00:00 2001 From: Matthew Caruana Galizia Date: Thu, 17 Aug 2017 19:11:10 +0200 Subject: [PATCH] PSTFile implements Closeable This allows a PSTFile to be instantiated in a try-with-resources block. --- src/main/java/com/pff/PSTFile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/pff/PSTFile.java b/src/main/java/com/pff/PSTFile.java index 5147095..efda840 100644 --- a/src/main/java/com/pff/PSTFile.java +++ b/src/main/java/com/pff/PSTFile.java @@ -38,6 +38,7 @@ import java.io.IOException; import java.io.InputStream; import java.io.RandomAccessFile; +import java.io.Closeable; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.LinkedList; @@ -52,7 +53,7 @@ * * @author Richard Johnson */ -public class PSTFile { +public class PSTFile implements Closeable { public static final int ENCRYPTION_TYPE_NONE = 0; public static final int ENCRYPTION_TYPE_COMPRESSIBLE = 1;