public class URLHandle extends StreamHandle
IRandomAccess,
StreamHandle,
URLConnectionStreamHandle.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, writeUTFpublic URLHandle(String url) throws IOException
url - the fully qualified URL pathIOException - if the URL is invalid or unreadablepublic void seek(long pos)
throws IOException
IRandomAccessseek in interface IRandomAccessseek in class StreamHandlepos - 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
StreamHandleresetStream in class StreamHandleIOException - if the stream cannot be resetCopyright © 2005–2024 Open Microscopy Environment. All rights reserved.