summaryrefslogtreecommitdiffstats
path: root/awt/javax/imageio/stream/FileImageInputStream.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:43 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:43 -0800
commitf013e1afd1e68af5e3b868c26a653bbfb39538f8 (patch)
tree7ad6c8fd9c7b55f4b4017171dec1cb760bbd26bf /awt/javax/imageio/stream/FileImageInputStream.java
parente70cfafe580c6f2994c4827cd8a534aabf3eb05c (diff)
downloadframeworks_base-f013e1afd1e68af5e3b868c26a653bbfb39538f8.zip
frameworks_base-f013e1afd1e68af5e3b868c26a653bbfb39538f8.tar.gz
frameworks_base-f013e1afd1e68af5e3b868c26a653bbfb39538f8.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'awt/javax/imageio/stream/FileImageInputStream.java')
-rw-r--r--awt/javax/imageio/stream/FileImageInputStream.java35
1 files changed, 21 insertions, 14 deletions
diff --git a/awt/javax/imageio/stream/FileImageInputStream.java b/awt/javax/imageio/stream/FileImageInputStream.java
index 6680ae0..b9b6002 100644
--- a/awt/javax/imageio/stream/FileImageInputStream.java
+++ b/awt/javax/imageio/stream/FileImageInputStream.java
@@ -15,7 +15,6 @@
* limitations under the License.
*/
-
package javax.imageio.stream;
import java.io.IOException;
@@ -24,24 +23,31 @@ import java.io.File;
import java.io.FileNotFoundException;
/**
- * The FileImageInputStream class implements ImageInputStream
- * and obtains its input data from a File or RandomAccessFile.
+ * The FileImageInputStream class implements ImageInputStream and obtains its
+ * input data from a File or RandomAccessFile.
+ *
+ * @since Android 1.0
*/
public class FileImageInputStream extends ImageInputStreamImpl {
-
- /** The raf. */
+
+ /**
+ * The raf.
+ */
RandomAccessFile raf;
/**
* Instantiates a new FileImageInputStream from the specified File.
*
- * @param f the File of input data.
- *
- * @throws FileNotFoundException if the specified file
- * doesn't exist.
- * @throws IOException Signals that an I/O exception has occurred.
+ * @param f
+ * the File of input data.
+ * @throws FileNotFoundException
+ * if the specified file doesn't exist.
+ * @throws IOException
+ * if an I/O exception has occurred.
*/
- @SuppressWarnings({"DuplicateThrows"})
+ @SuppressWarnings( {
+ "DuplicateThrows"
+ })
public FileImageInputStream(File f) throws FileNotFoundException, IOException {
if (f == null) {
throw new IllegalArgumentException("f == null!");
@@ -51,10 +57,11 @@ public class FileImageInputStream extends ImageInputStreamImpl {
}
/**
- * Instantiates a new FileImageInputStream from the specified
+ * Instantiates a new FileImageInputStream from the specified
* RandomAccessFile.
*
- * @param raf the RandomAccessFile of input data.
+ * @param raf
+ * the RandomAccessFile of input data.
*/
public FileImageInputStream(RandomAccessFile raf) {
if (raf == null) {
@@ -91,7 +98,7 @@ public class FileImageInputStream extends ImageInputStreamImpl {
public long length() {
try {
return raf.length();
- } catch(IOException e) {
+ } catch (IOException e) {
return -1L;
}
}