java.lang.Object
org.glavo.jimage.ImageStream
- Implementation Note:
- This class needs to maintain JDK 8 source compatibility. It is used internally in the JDK to implement jimage/jrtfs access, but also compiled and delivered as part of the jrtfs.jar to support access to the jimage file provided by the shipped JDK by tools running on JDK 8.
-
构造器概要
构造器构造器说明ImageStream(byte[] bytes) ImageStream(byte[] bytes, ByteOrder byteOrder) ImageStream(int size) ImageStream(int size, ByteOrder byteOrder) ImageStream(ByteBuffer buffer) ImageStream(ByteOrder byteOrder) -
方法概要
修饰符和类型方法说明align(int alignment) voidensure(int needs) intget()voidget(byte[] bytes, int offset, int size) byte[]getBytes()intgetInt()longgetLong()intintgetShort()intgetSize()booleanhasByte()booleanhasBytes(int needs) put(byte byt) put(byte[] bytes, int offset, int size) put(int byt) put(ImageStream stream) putInt(int value) putLong(long value) putShort(int value) putShort(short value) voidsetPosition(int offset) voidskip(int n) byte[]toArray()
-
构造器详细资料
-
ImageStream
public ImageStream() -
ImageStream
public ImageStream(int size) -
ImageStream
public ImageStream(byte[] bytes) -
ImageStream
-
ImageStream
-
ImageStream
-
ImageStream
-
-
方法详细资料
-
align
-
ensure
public void ensure(int needs) -
hasByte
public boolean hasByte() -
hasBytes
public boolean hasBytes(int needs) -
skip
public void skip(int n) -
get
public int get() -
get
public void get(byte[] bytes, int offset, int size) -
getShort
public int getShort() -
getInt
public int getInt() -
getLong
public long getLong() -
put
-
put
-
put
-
put
-
putShort
-
putShort
-
putInt
-
putLong
-
getBuffer
-
getPosition
public int getPosition() -
getSize
public int getSize() -
getBytes
public byte[] getBytes() -
setPosition
public void setPosition(int offset) -
toArray
public byte[] toArray()
-