it.geosolutions.imageio.stream.input
Class URIImageInputStreamImpl

Object
  extended by ImageInputStreamImpl
      extended by URIImageInputStreamImpl
All Implemented Interfaces:
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 ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary
URIImageInputStreamImpl(URI uri)
           
 
Method Summary
 URI getUri()
          Returns the associated URI
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class 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 Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface 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


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.