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
java.io.IOExceptionpublic ByteBufferURLReader(java.net.URL url,
ByteBufferURLReader.Chunk chunk)
throws java.io.IOException
java.io.IOExceptionpublic ByteBufferURLReader(java.net.URL url,
java.nio.channels.FileChannel fileChannel,
ByteBufferURLReader.Chunk chunk)
throws java.io.IOException
java.io.IOExceptionpublic ByteBufferURLReader(java.net.URL url,
java.nio.channels.FileChannel fileChannel)
throws java.io.IOException
java.io.IOExceptionpublic void setChunk(ByteBufferURLReader.Chunk chunk)
public java.nio.ByteBuffer getBuffer()
throws java.io.IOException
java.io.IOExceptionpublic java.nio.ByteBuffer read()
throws java.io.IOException
java.io.IOExceptionpublic void transfer()
throws java.io.IOException
java.io.IOExceptionpublic boolean endOfFile()