程序包 org.glavo.jimage

类 ImageStream

java.lang.Object
org.glavo.jimage.ImageStream

public class ImageStream extends Object
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

      public ImageStream()
    • ImageStream

      public ImageStream(int size)
    • ImageStream

      public ImageStream(byte[] bytes)
    • ImageStream

      public ImageStream(ByteOrder byteOrder)
    • ImageStream

      public ImageStream(int size, ByteOrder byteOrder)
    • ImageStream

      public ImageStream(byte[] bytes, ByteOrder byteOrder)
    • ImageStream

      public ImageStream(ByteBuffer buffer)
  • 方法详细资料

    • align

      public ImageStream align(int alignment)
    • 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

      public ImageStream put(byte byt)
    • put

      public ImageStream put(int byt)
    • put

      public ImageStream put(byte[] bytes, int offset, int size)
    • put

      public ImageStream put(ImageStream stream)
    • putShort

      public ImageStream putShort(short value)
    • putShort

      public ImageStream putShort(int value)
    • putInt

      public ImageStream putInt(int value)
    • putLong

      public ImageStream putLong(long value)
    • getBuffer

      public ByteBuffer getBuffer()
    • getPosition

      public int getPosition()
    • getSize

      public int getSize()
    • getBytes

      public byte[] getBytes()
    • setPosition

      public void setPosition(int offset)
    • toArray

      public byte[] toArray()