public class URLHandle extends StreamHandle
IRandomAccess
,
StreamHandle
,
URLConnection
StreamHandle.Settings
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.
|
close, exists, getFilePointer, getOrder, length, read, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setOrder, skipBytes, skipBytes, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public URLHandle(String url) throws IOException
url
- the fully qualified URL pathIOException
- if the URL is invalid or unreadablepublic void seek(long pos) throws IOException
IRandomAccess
seek
in interface IRandomAccess
seek
in class StreamHandle
pos
- new byte offset (pointer) in the current stream.
Unless otherwise noted, may be larger or smaller than the
current pointer, but must be non-negative and less than the
value of #length()IOException
- if pos
is invalid or the seek failsIRandomAccess.getFilePointer()
protected void resetStream() throws IOException
StreamHandle
resetStream
in class StreamHandle
IOException
- if the stream cannot be resetCopyright © 2005–2024 Open Microscopy Environment. All rights reserved.