public class ByteArrayImageInputStream
extends java.io.ByteArrayInputStream
implements javax.imageio.stream.ImageInputStream
| Constructor and Description |
|---|
ByteArrayImageInputStream(byte[] buf) |
ByteArrayImageInputStream(byte[] buf,
java.nio.ByteOrder byteOrder) |
ByteArrayImageInputStream(byte[] buf,
int offset,
int length,
java.nio.ByteOrder byteOrder) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
void |
flushBefore(long pos) |
int |
getBitOffset() |
java.nio.ByteOrder |
getByteOrder() |
long |
getFlushedPosition() |
long |
getStreamPosition() |
boolean |
isCached() |
boolean |
isCachedFile() |
boolean |
isCachedMemory() |
long |
length() |
void |
mark() |
int |
readBit() |
long |
readBits(int numBits) |
boolean |
readBoolean() |
byte |
readByte() |
void |
readBytes(javax.imageio.stream.IIOByteBuffer buf,
int len) |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
void |
readFully(char[] c,
int off,
int len) |
void |
readFully(double[] d,
int off,
int len) |
void |
readFully(float[] f,
int off,
int len) |
void |
readFully(int[] i,
int off,
int len) |
void |
readFully(long[] l,
int off,
int len) |
void |
readFully(short[] s,
int off,
int len) |
int |
readInt() |
java.lang.String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
void |
reset() |
void |
seek(long pos) |
void |
setBitOffset(int bitOffset) |
void |
setByteOrder(java.nio.ByteOrder byteOrder) |
int |
skipBytes(int n) |
long |
skipBytes(long n) |
available, close, mark, markSupported, read, read, skippublic ByteArrayImageInputStream(byte[] buf)
public ByteArrayImageInputStream(byte[] buf,
java.nio.ByteOrder byteOrder)
public ByteArrayImageInputStream(byte[] buf,
int offset,
int length,
java.nio.ByteOrder byteOrder)
public void setByteOrder(java.nio.ByteOrder byteOrder)
setByteOrder in interface javax.imageio.stream.ImageInputStreampublic java.nio.ByteOrder getByteOrder()
getByteOrder in interface javax.imageio.stream.ImageInputStreampublic void readBytes(javax.imageio.stream.IIOByteBuffer buf,
int len)
throws java.io.IOException
readBytes in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic boolean readBoolean()
throws java.io.IOException
readBoolean in interface java.io.DataInputreadBoolean in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic byte readByte()
throws java.io.IOException
readByte in interface java.io.DataInputreadByte in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface java.io.DataInputreadUnsignedByte in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic short readShort()
throws java.io.IOException
readShort in interface java.io.DataInputreadShort in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in interface java.io.DataInputreadUnsignedShort in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic char readChar()
throws java.io.IOException
readChar in interface java.io.DataInputreadChar in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic int readInt()
throws java.io.IOException
readInt in interface java.io.DataInputreadInt in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic long readUnsignedInt()
throws java.io.IOException
readUnsignedInt in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic long readLong()
throws java.io.IOException
readLong in interface java.io.DataInputreadLong in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
readFloat in interface java.io.DataInputreadFloat in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic double readDouble()
throws java.io.IOException
readDouble in interface java.io.DataInputreadDouble in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputreadLine in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInputreadUTF in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
readFully in interface java.io.DataInputreadFully in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void readFully(byte[] b)
throws java.io.IOException
readFully in interface java.io.DataInputreadFully in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void readFully(short[] s,
int off,
int len)
throws java.io.IOException
readFully in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void readFully(char[] c,
int off,
int len)
throws java.io.IOException
readFully in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void readFully(int[] i,
int off,
int len)
throws java.io.IOException
readFully in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void readFully(long[] l,
int off,
int len)
throws java.io.IOException
readFully in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void readFully(float[] f,
int off,
int len)
throws java.io.IOException
readFully in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void readFully(double[] d,
int off,
int len)
throws java.io.IOException
readFully in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic long getStreamPosition()
getStreamPosition in interface javax.imageio.stream.ImageInputStreampublic int getBitOffset()
getBitOffset in interface javax.imageio.stream.ImageInputStreampublic void setBitOffset(int bitOffset)
setBitOffset in interface javax.imageio.stream.ImageInputStreampublic int readBit()
throws java.io.IOException
readBit in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic long readBits(int numBits)
throws java.io.IOException
readBits in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic long length()
throws java.io.IOException
length in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic int skipBytes(int n)
throws java.io.IOException
skipBytes in interface java.io.DataInputskipBytes in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic long skipBytes(long n)
throws java.io.IOException
skipBytes in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void seek(long pos)
throws java.io.IOException
seek in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void flushBefore(long pos)
throws java.io.IOException
flushBefore in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface javax.imageio.stream.ImageInputStreamjava.io.IOExceptionpublic long getFlushedPosition()
getFlushedPosition in interface javax.imageio.stream.ImageInputStreampublic boolean isCached()
isCached in interface javax.imageio.stream.ImageInputStreampublic boolean isCachedMemory()
isCachedMemory in interface javax.imageio.stream.ImageInputStreampublic boolean isCachedFile()
isCachedFile in interface javax.imageio.stream.ImageInputStreampublic void mark()
mark in interface javax.imageio.stream.ImageInputStreampublic void reset()
reset in interface javax.imageio.stream.ImageInputStreamreset in class java.io.ByteArrayInputStreamCopyright © 2010 - 2023 Adobe. All Rights Reserved