it.geosolutions.imageio.stream.input
Class URIImageInputStreamImpl

java.lang.Object
  extended by javax.imageio.stream.ImageInputStreamImpl
      extended by 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

Field Summary
 
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary
URIImageInputStreamImpl(URI uri)
           
 
Method Summary
 Class<URI> getBinding()
          Retrieve the class for the target object.
 URI getTarget()
          Retrieves the target object on which we work.
 URI getUri()
          Returns the associated URI
 int read()
           
 int read(byte[] b, int off, int len)
           
 
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 class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

URIImageInputStreamImpl

public URIImageInputStreamImpl(URI uri)
Method Detail

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.