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, skip
public 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.ImageInputStream
public java.nio.ByteOrder getByteOrder()
getByteOrder
in interface javax.imageio.stream.ImageInputStream
public void readBytes(javax.imageio.stream.IIOByteBuffer buf, int len) throws java.io.IOException
readBytes
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
readBoolean
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
readByte
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
readUnsignedByte
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
readShort
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
readUnsignedShort
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
readChar
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
readInt
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public long readUnsignedInt() throws java.io.IOException
readUnsignedInt
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
readLong
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
readFloat
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
readDouble
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
readLine
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
readUTF
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
in interface java.io.DataInput
readFully
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void readFully(byte[] b) throws java.io.IOException
readFully
in interface java.io.DataInput
readFully
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void readFully(short[] s, int off, int len) throws java.io.IOException
readFully
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void readFully(char[] c, int off, int len) throws java.io.IOException
readFully
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void readFully(int[] i, int off, int len) throws java.io.IOException
readFully
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void readFully(long[] l, int off, int len) throws java.io.IOException
readFully
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void readFully(float[] f, int off, int len) throws java.io.IOException
readFully
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void readFully(double[] d, int off, int len) throws java.io.IOException
readFully
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public long getStreamPosition()
getStreamPosition
in interface javax.imageio.stream.ImageInputStream
public int getBitOffset()
getBitOffset
in interface javax.imageio.stream.ImageInputStream
public void setBitOffset(int bitOffset)
setBitOffset
in interface javax.imageio.stream.ImageInputStream
public int readBit() throws java.io.IOException
readBit
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public long readBits(int numBits) throws java.io.IOException
readBits
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public long length() throws java.io.IOException
length
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
skipBytes
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public long skipBytes(long n) throws java.io.IOException
skipBytes
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void seek(long pos) throws java.io.IOException
seek
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void flushBefore(long pos) throws java.io.IOException
flushBefore
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface javax.imageio.stream.ImageInputStream
java.io.IOException
public long getFlushedPosition()
getFlushedPosition
in interface javax.imageio.stream.ImageInputStream
public boolean isCached()
isCached
in interface javax.imageio.stream.ImageInputStream
public boolean isCachedMemory()
isCachedMemory
in interface javax.imageio.stream.ImageInputStream
public boolean isCachedFile()
isCachedFile
in interface javax.imageio.stream.ImageInputStream
public void mark()
mark
in interface javax.imageio.stream.ImageInputStream
public void reset()
reset
in interface javax.imageio.stream.ImageInputStream
reset
in class java.io.ByteArrayInputStream
Copyright © 2010 - 2020 Adobe. All Rights Reserved