public class URLHandle extends StreamHandle
IRandomAccess,
StreamHandle,
URLConnection| Modifier and Type | Field and Description |
|---|---|
private URLConnection |
conn
Socket underlying this stream
|
private String |
url
URL of open socket
|
| Constructor and Description |
|---|
URLHandle(String url)
Constructs a new URLHandle using the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
resetStream()
Close and reopen the stream; the stream pointer and mark should be
reset to 0.
|
void |
seek(long pos)
Sets the stream pointer offset, measured from the beginning
of this stream, at which the next read or write occurs.
|
private void |
skip(long bytes)
Skip over the given number of bytes.
|
close, getFilePointer, getOrder, length, read, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setOrder, skipBytes, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFprivate String url
private URLConnection conn
public URLHandle(String url) throws IOException
IOExceptionpublic void seek(long pos)
throws IOException
IRandomAccessseek in interface IRandomAccessseek in class StreamHandleIOExceptionprotected void resetStream()
throws IOException
StreamHandleresetStream in class StreamHandleIOExceptionprivate void skip(long bytes)
throws IOException
IOExceptionCopyright © 2015 Open Microscopy Environment