|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagero.uio.buffer.HTTPBuffer
Implementation of Buffer for http. This intelligent Buffer uses "byteserving" feature of HTTP 1.1 for reading only data which is needed.
| Constructor Summary | |
HTTPBuffer(java.net.URL url,
int offset,
int length)
|
|
| Method Summary | |
byte[] |
getData()
read specified part of data from URL |
byte[] |
getData(byte[] d)
copy data to supplied byte array |
boolean |
isDirty()
|
int |
length()
get length of data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTTPBuffer(java.net.URL url,
int offset,
int length)
| Method Detail |
public byte[] getData()
throws java.io.IOException
getData in interface Bufferjava.io.IOException - if server don't support "byteserving"
public byte[] getData(byte[] d)
throws java.io.IOException
Buffer
getData in interface Bufferd - destination array
java.io.IOExceptionpublic int length()
Buffer
length in interface Bufferpublic boolean isDirty()
isDirty in interface Buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||