org.apache.batik.ext.awt.image.codec.util
public class ForwardSeekableStream extends SeekableStream
SeekableStream
that may be used
to wrap a regular InputStream
efficiently.
Seeking backwards is not supported.
Constructor Summary | |
---|---|
ForwardSeekableStream(InputStream src)
Constructs a InputStreamForwardSeekableStream from a
regular InputStream . |
Method Summary | |
---|---|
int | available() Forwards the request to the real InputStream . |
boolean | canSeekBackwards() Returns false since seking backwards is not supported. |
void | close() Forwards the request to the real InputStream . |
long | getFilePointer() Returns the current position in the stream (bytes read). |
void | mark(int readLimit)
Forwards the request to the real InputStream .
|
boolean | markSupported() Forwards the request to the real InputStream . |
int | read() Forwards the request to the real InputStream . |
int | read(byte[] b, int off, int len) Forwards the request to the real InputStream . |
void | reset()
Forwards the request to the real InputStream .
|
void | seek(long pos)
Seeks forward to the given position in the stream.
|
long | skip(long n) Forwards the request to the real InputStream . |
InputStreamForwardSeekableStream
from a
regular InputStream
.InputStream
.false
since seking backwards is not supported.InputStream
.InputStream
.
We use {@link SeekableStream#markPos}InputStream
.InputStream
.InputStream
.InputStream
.
We use {@link SeekableStream#markPos}pos
is smaller than the current position
as returned by getFilePointer()
, nothing
happens.InputStream
.