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, writeUTF
private String url
private URLConnection conn
public URLHandle(String url) throws IOException
IOException
public void seek(long pos) throws IOException
IRandomAccess
seek
in interface IRandomAccess
seek
in class StreamHandle
IOException
protected void resetStream() throws IOException
StreamHandle
resetStream
in class StreamHandle
IOException
private void skip(long bytes) throws IOException
IOException
Copyright © 2015 Open Microscopy Environment