it.geosolutions.imageio.stream.input
Class URIImageInputStreamImpl
java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
it.geosolutions.imageio.stream.input.URIImageInputStreamImpl
- All Implemented Interfaces:
- AccessibleStream<URI>, URIImageInputStream, DataInput, ImageInputStream
public class URIImageInputStreamImpl
- extends ImageInputStreamImpl
- implements URIImageInputStream
An implementation of ImageInputStream
that gets its input from a
URI
.
Note that this class doesn't actually allow read operations. It is actually
only used to allow defining an ImageInputStream
for a URI.
- Author:
- Daniele Romagnoli, GeoSolutions
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl |
checkClosed, close, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytes |
Methods inherited from interface javax.imageio.stream.ImageInputStream |
close, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytes |
URIImageInputStreamImpl
public URIImageInputStreamImpl(URI uri)
read
public int read()
throws IOException
- Specified by:
read
in interface ImageInputStream
- Specified by:
read
in class ImageInputStreamImpl
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Specified by:
read
in interface ImageInputStream
- Specified by:
read
in class ImageInputStreamImpl
- Throws:
IOException
getUri
public URI getUri()
- Description copied from interface:
URIImageInputStream
- Returns the associated
URI
- Specified by:
getUri
in interface URIImageInputStream
- Returns:
- the associated
URI
getTarget
public URI getTarget()
- Description copied from interface:
AccessibleStream
- Retrieves the target object on which we work.
- Specified by:
getTarget
in interface AccessibleStream<URI>
- Returns:
- the target object on which we work.
getBinding
public Class<URI> getBinding()
- Description copied from interface:
AccessibleStream
- Retrieve the class for the target object.
- Specified by:
getBinding
in interface AccessibleStream<URI>
- Returns:
- the class for the target object.
Copyright © 2006–2013 GeoSolutions. All rights reserved.