public class ByteBufferURLReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ByteBufferURLReader.Chunk |
Constructor and Description |
---|
ByteBufferURLReader(java.net.URL url) |
ByteBufferURLReader(java.net.URL url,
ByteBufferURLReader.Chunk chunk) |
ByteBufferURLReader(java.net.URL url,
java.nio.channels.FileChannel fileChannel) |
ByteBufferURLReader(java.net.URL url,
java.nio.channels.FileChannel fileChannel,
ByteBufferURLReader.Chunk chunk) |
Modifier and Type | Method and Description |
---|---|
boolean |
endOfFile() |
java.nio.ByteBuffer |
getBuffer() |
java.nio.ByteBuffer |
read() |
void |
setChunk(ByteBufferURLReader.Chunk chunk) |
void |
transfer() |
public ByteBufferURLReader(java.net.URL url) throws java.io.IOException
url
- java.io.IOException
public ByteBufferURLReader(java.net.URL url, ByteBufferURLReader.Chunk chunk) throws java.io.IOException
url
- chunk
- java.io.IOException
public ByteBufferURLReader(java.net.URL url, java.nio.channels.FileChannel fileChannel, ByteBufferURLReader.Chunk chunk) throws java.io.IOException
url
- fc
- chunk
- java.io.IOException
public ByteBufferURLReader(java.net.URL url, java.nio.channels.FileChannel fileChannel) throws java.io.IOException
url
- fc
- java.io.IOException
public void setChunk(ByteBufferURLReader.Chunk chunk)
chunk
- public java.nio.ByteBuffer getBuffer() throws java.io.IOException
java.io.IOException
public java.nio.ByteBuffer read() throws java.io.IOException
java.io.IOException
public void transfer() throws java.io.IOException
java.io.IOException
public boolean endOfFile()