45 |
/** |
/** |
46 |
* @author Michael Koch (konqueror@gmx.de) |
* @author Michael Koch (konqueror@gmx.de) |
47 |
*/ |
*/ |
48 |
public class FileCacheImageOutputStream |
public class FileCacheImageOutputStream extends ImageOutputStreamImpl |
49 |
{ |
{ |
50 |
private OutputStream stream; |
private OutputStream 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 |
|
// FIXME: Implement me. |
98 |
|
throw new Error("not implemented"); |
99 |
|
} |
100 |
|
|
101 |
|
public int read(byte[] data, int offset, int len) |
102 |
|
throws IOException |
103 |
|
{ |
104 |
|
// FIXME: Implement me. |
105 |
|
throw new Error("not implemented"); |
106 |
|
} |
107 |
|
|
108 |
|
public void write(byte[] data, int offset, int len) |
109 |
|
throws IOException |
110 |
|
{ |
111 |
|
checkStreamClosed(); |
112 |
|
// FIXME: Flush pending bits. |
113 |
|
stream.write(data, offset, len); |
114 |
|
} |
115 |
|
|
116 |
|
public void write(int value) |
117 |
|
throws IOException |
118 |
|
{ |
119 |
|
checkStreamClosed(); |
120 |
|
// FIXME: Flush pending bits. |
121 |
|
stream.write(value); |
122 |
|
} |
123 |
} |
} |