public class ResourceImageOutputStream extends ImageOutputStreamImpl
Constructor and Description |
---|
ResourceImageOutputStream(OutputStream os) |
ResourceImageOutputStream(Resource res) |
Modifier and Type | Method and Description |
---|---|
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) |
write, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTF
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flushBefore
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
public ResourceImageOutputStream(Resource res) throws IOException
IOException
public ResourceImageOutputStream(OutputStream os)
public int read() throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
IOException
public void write(int b) throws IOException
write
in interface DataOutput
write
in interface ImageOutputStream
write
in class ImageOutputStreamImpl
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in interface DataOutput
write
in interface ImageOutputStream
write
in class ImageOutputStreamImpl
IOException
public long length()
length
in interface ImageInputStream
length
in class ImageInputStreamImpl
public void seek(long pos) throws IOException
EOFException
will be thrown only if a read is
performed. The file length will not be increased until a write
is performed.seek
in interface ImageInputStream
seek
in class ImageInputStreamImpl
IndexOutOfBoundsException
- if pos
is smaller
than the flushed position.IOException
- if any other I/O error occurs.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ImageInputStream
close
in class ImageInputStreamImpl
IOException
Copyright © 2015 Lucee