Fixed some access scopes and made classes final.

This commit is contained in:
Harald Kuhr 2016-02-03 10:46:04 +01:00
parent 87db620dac
commit 156fe8bb25
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ import java.util.SortedSet;
* @see com.twelvemonkeys.io.ole2.CompoundDocument
* @see <a href="http://en.wikipedia.org/wiki/Thumbs.db>Wikipedia: Thumbs.db</a>
*/
public class ThumbsDBImageReader extends ImageReaderBase {
public final class ThumbsDBImageReader extends ImageReaderBase {
private static final int THUMBNAIL_OFFSET = 12;
private Entry root;
private Catalog catalog;

View File

@ -47,7 +47,7 @@ import java.util.Locale;
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
* @version $Id: ThumbsDBImageReaderSpi.java,v 1.0 28.feb.2006 19:21:05 haku Exp$
*/
public class ThumbsDBImageReaderSpi extends ImageReaderSpiBase {
public final class ThumbsDBImageReaderSpi extends ImageReaderSpiBase {
private ImageReaderSpi jpegProvider;
/**
@ -61,7 +61,7 @@ public class ThumbsDBImageReaderSpi extends ImageReaderSpiBase {
return source instanceof ImageInputStream && canDecode((ImageInputStream) source);
}
public boolean canDecode(final ImageInputStream pInput) throws IOException {
boolean canDecode(final ImageInputStream pInput) throws IOException {
maybeInitJPEGProvider();
// If this is a OLE 2 CompoundDocument, we could try...
// TODO: How do we know it's thumbs.db format (structure), without reading quite a lot?