45 |
/** |
/** |
46 |
* @author Michael Koch (konqueror@gmx.de) |
* @author Michael Koch (konqueror@gmx.de) |
47 |
*/ |
*/ |
48 |
public class FileCacheImageInputStream |
public class FileCacheImageInputStream extends ImageInputStreamImpl |
49 |
{ |
{ |
50 |
private InputStream stream; |
private InputStream stream; |
51 |
private File cacheDir; |
private File cacheDir; |
90 |
{ |
{ |
91 |
return false; |
return false; |
92 |
} |
} |
93 |
|
|
94 |
|
public int read() |
95 |
|
throws IOException |
96 |
|
{ |
97 |
|
checkStreamClosed(); |
98 |
|
setBitOffset(0); |
99 |
|
return stream.read(); |
100 |
|
} |
101 |
|
|
102 |
|
public int read(byte[] data, int offset, int len) |
103 |
|
throws IOException |
104 |
|
{ |
105 |
|
checkStreamClosed(); |
106 |
|
setBitOffset(0); |
107 |
|
return stream.read(data, offset, len); |
108 |
|
} |
109 |
} |
} |