|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.entityfs.util.io.RandomAccessInputStreamAdapter
RandomAccessToInputStreamAdapter
class instead.
This class will be deleted in a future release.
@Deprecated public class RandomAccessInputStreamAdapter
This adapter treats a RandomAccess
object as an
InputStream
.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
RandomAccessInputStreamAdapter(RandomAccess ra)
Deprecated. Create an adapter between a RandomAccess and an
InputStream . |
|
RandomAccessInputStreamAdapter(RandomAccess ra,
boolean closeRandomAccessWhenClosingStream)
Deprecated. Create an adapter between a RandomAccess and an
InputStream . |
Method Summary | |
---|---|
int |
available()
Deprecated. |
void |
close()
Deprecated. |
void |
mark(int readLimit)
Deprecated. This method does nothing. |
boolean |
markSupported()
Deprecated. |
int |
read()
Deprecated. |
int |
read(byte[] barr)
Deprecated. |
int |
read(byte[] barr,
int off,
int len)
Deprecated. |
void |
reset()
Deprecated. This method does nothing. |
long |
skip(long n)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomAccessInputStreamAdapter(RandomAccess ra)
RandomAccess
and an
InputStream
.
When this adapter is closed, it closes the underlying RandomAccess
object. See
RandomAccessInputStreamAdapter(RandomAccess, boolean)
ra
- The RandomAccess
to adapt.public RandomAccessInputStreamAdapter(RandomAccess ra, boolean closeRandomAccessWhenClosingStream)
RandomAccess
and an
InputStream
.
ra
- The RandomAccess
to adapt.closeRandomAccessWhenClosingStream
- Should the RandomAccess
be closed when this stream is closed?Method Detail |
---|
public int available()
available
in class FilterInputStream
public void mark(int readLimit)
mark
in class FilterInputStream
public void reset()
reset
in class FilterInputStream
public boolean markSupported()
markSupported
in class FilterInputStream
false
.public int read()
read
in class FilterInputStream
public int read(byte[] barr)
read
in class FilterInputStream
public int read(byte[] barr, int off, int len)
read
in class FilterInputStream
public long skip(long n)
skip
in class FilterInputStream
public void close()
close
in interface Closeable
close
in class FilterInputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |