railo.runtime.img
Class ResourceImageOutputStream
java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.ImageOutputStreamImpl
railo.runtime.img.ResourceImageOutputStream
- All Implemented Interfaces:
- DataInput, DataOutput, ImageInputStream, ImageOutputStream
public class ResourceImageOutputStream
- extends ImageOutputStreamImpl
Method Summary |
void |
close()
|
long |
length()
|
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
void |
seek(long pos)
Sets the current stream position and resets the bit offset to
0. |
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class javax.imageio.stream.ImageOutputStreamImpl |
write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTF |
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl |
flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, 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, setBitOffset, setByteOrder, skipBytes, skipBytes |
Methods inherited from interface javax.imageio.stream.ImageInputStream |
flush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, 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, setBitOffset, setByteOrder, skipBytes, skipBytes |
ResourceImageOutputStream
public ResourceImageOutputStream(Resource res)
throws IOException
- Throws:
IOException
ResourceImageOutputStream
public ResourceImageOutputStream(OutputStream os)
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
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
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
length
public long length()
- Specified by:
length
in interface ImageInputStream
- Overrides:
length
in class ImageInputStreamImpl
seek
public void seek(long pos)
throws IOException
- Sets the current stream position and resets the bit offset to
0. It is legal to seeking past the end of the file; an
EOFException
will be thrown only if a read is
performed. The file length will not be increased until a write
is performed.
- Specified by:
seek
in interface ImageInputStream
- Overrides:
seek
in class ImageInputStreamImpl
- Throws:
IndexOutOfBoundsException
- if pos
is smaller
than the flushed position.
IOException
- if any other I/O error occurs.
close
public void close()
throws IOException
- Specified by:
close
in interface ImageInputStream
- Overrides:
close
in class ImageInputStreamImpl
- Throws:
IOException
- See Also:
ImageInputStreamImpl.close()
Copyright © 2012 Railo