|
|||||
PREV CLASS NEXT CLASS | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--swishej.UReader
Reader for reading a SWISH-E index file from a byte array which gets filled from a URL.
Reader
Field Summary | |
(package private) byte[] |
buffer
File data buffer. |
(package private) static int |
CHUNKSIZE
Default expanded chunk size. |
(package private) GZBuf[] |
gzbufs
Chunks for managing data. |
(package private) long |
pos
Current file position. |
(package private) int |
total
Total data size |
Constructor Summary | |
(package private) |
UReader(java.net.URL url)
Create an index file reader from given URL. |
Method Summary | |
int |
read(byte[] b)
Read an array of bytes. |
void |
seek(long pos)
Seek to file position. |
long |
tell()
Retrieve current file position |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final int CHUNKSIZE
byte[] buffer
GZBuf[] gzbufs
int total
long pos
Constructor Detail |
UReader(java.net.URL url) throws java.net.MalformedURLException, java.io.IOException
url
- URL to fill the buffers from.Method Detail |
public int read(byte[] b) throws java.io.IOException
b
- byte array to be filled by the readpublic void seek(long pos) throws java.io.IOException
pos
- long position measured from begin of file, must be positivepublic long tell()
|
|||||
PREV CLASS NEXT CLASS | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |