|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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 FilterInputStreampublic void mark(int readLimit)
mark in class FilterInputStreampublic void reset()
reset in class FilterInputStreampublic boolean markSupported()
markSupported in class FilterInputStreamfalse.public int read()
read in class FilterInputStreampublic int read(byte[] barr)
read in class FilterInputStream
public int read(byte[] barr,
int off,
int len)
read in class FilterInputStreampublic long skip(long n)
skip in class FilterInputStreampublic void close()
close in interface Closeableclose in class FilterInputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||