diff options
author | Keiron Liddle <keiron@apache.org> | 2002-02-25 09:31:03 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-02-25 09:31:03 +0000 |
commit | 38b2ca9fad8885b42d51c9a6f34f98323651eaa7 (patch) | |
tree | 84ccf0ac387af132f7a574c7a05b7a70cb218791 /src/org/apache/fop/image/analyser/AbstractImageReader.java | |
parent | 76705cc4238b38ecec2e4088b48358cbe3231934 (diff) | |
download | xmlgraphics-fop-38b2ca9fad8885b42d51c9a6f34f98323651eaa7.tar.gz xmlgraphics-fop-38b2ca9fad8885b42d51c9a6f34f98323651eaa7.zip |
improved thread safety of readers
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194670 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/image/analyser/AbstractImageReader.java')
-rw-r--r-- | src/org/apache/fop/image/analyser/AbstractImageReader.java | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/org/apache/fop/image/analyser/AbstractImageReader.java b/src/org/apache/fop/image/analyser/AbstractImageReader.java deleted file mode 100644 index 999ffa127..000000000 --- a/src/org/apache/fop/image/analyser/AbstractImageReader.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * $Id$ - * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. - * For details on use and redistribution please refer to the - * LICENSE file included with these sources. - */ - -package org.apache.fop.image.analyser; - -// Java -import java.io.BufferedInputStream; -import java.io.IOException; - -import org.apache.fop.fo.FOUserAgent; - -/** - * Base class implementing ImageReader. - * @author Pankaj Narula - * @version 1.0 - * @see ImageReader - */ -public abstract class AbstractImageReader implements ImageReader { - - /** - * Image width. - */ - protected int width = 0; - - /** - * Image height. - */ - protected int height = 0; - - /** - * Image stream. - */ - protected BufferedInputStream imageStream = null; - - public abstract boolean verifySignature(String uri, - BufferedInputStream fis, FOUserAgent ua) throws IOException; - - public int getHeight() { - return this.height; - } - - public int getWidth() { - return this.width; - } - - public abstract String getMimeType(); - - public BufferedInputStream getInputStream() { - return this.imageStream; - } - -} - |