it.geosolutions.imageio.stream.output
Class ImageOutputStreamAdapter

Object
  extended by ImageInputStreamImpl
      extended by ImageOutputStreamImpl
          extended by ImageOutputStreamAdapter
All Implemented Interfaces:
DataInput, DataOutput, ImageInputStream, ImageOutputStream

public class ImageOutputStreamAdapter
extends ImageOutputStreamImpl

Author:
Simone Giannecchini, GeoSolutions

Field Summary
 
Fields inherited from class ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary
ImageOutputStreamAdapter(OutputStream os)
           
 
Method Summary
 void close()
           
 void flush()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class ImageOutputStreamImpl
flushBits, write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTF
 
Methods inherited from class ImageInputStreamImpl
checkClosed, finalize, 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 ImageOutputStream
flushBefore
 
Methods inherited from interface ImageInputStream
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

ImageOutputStreamAdapter

public ImageOutputStreamAdapter(OutputStream os)
Method Detail

write

public void write(int b)
           throws IOException
Specified by:
write in interface DataOutput
Specified by:
write in interface ImageOutputStream
Specified by:
write in class ImageOutputStreamImpl
Throws:
IOException
See Also:
ImageOutputStreamImpl.write(int)

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Specified by:
write in interface DataOutput
Specified by:
write in interface ImageOutputStream
Specified by:
write in class ImageOutputStreamImpl
Throws:
IOException
See Also:
ImageOutputStreamImpl.write(byte[], int, int)

read

public int read()
         throws IOException
Specified by:
read in interface ImageInputStream
Specified by:
read in class ImageInputStreamImpl
Throws:
IOException
See Also:
ImageInputStreamImpl.read()

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
See Also:
ImageInputStreamImpl.read(byte[], int, int)

flush

public void flush()
           throws IOException
Specified by:
flush in interface ImageInputStream
Overrides:
flush in class ImageInputStreamImpl
Throws:
IOException
See Also:
ImageInputStreamImpl.flush()

close

public void close()
           throws IOException
Specified by:
close in interface ImageInputStream
Overrides:
close in class ImageInputStreamImpl
Throws:
IOException
See Also:
ImageInputStreamImpl.close()


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.