227 |
byte[] tmp = new byte[len]; |
byte[] tmp = new byte[len]; |
228 |
return (long) read(tmp); |
return (long) read(tmp); |
229 |
} |
} |
230 |
|
|
231 |
|
/** |
232 |
|
* Since this stream tends to buffer large (unpredictable?) amounts |
233 |
|
* of stuff, it causes problems to the mark/reset mechanism. Hence, |
234 |
|
* it claims not to support mark. |
235 |
|
* |
236 |
|
* @return false |
237 |
|
*/ |
238 |
|
public boolean markSupported() |
239 |
|
{ |
240 |
|
return false; |
241 |
|
} |
242 |
|
|
243 |
|
/** |
244 |
|
* Throws an exception. |
245 |
|
* |
246 |
|
* @see #markSupported |
247 |
|
* |
248 |
|
* @param readlimit The parameter passed to <code>in.mark(int)</code> |
249 |
|
*/ |
250 |
|
public void mark(int readlimit) |
251 |
|
{ |
252 |
|
|
253 |
|
} |
254 |
|
|
255 |
|
/** |
256 |
|
* Throws an exception. |
257 |
|
* |
258 |
|
* @see #markSupported |
259 |
|
* |
260 |
|
* @exception IOException If an error occurs |
261 |
|
*/ |
262 |
|
public void reset() throws IOException |
263 |
|
{ |
264 |
|
throw new IOException("mark/reset not supported by " + getClass()); |
265 |
|
} |
266 |
} |
} |