- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.data.jimage.ImageStream
-
public class ImageStream extends Object
-
-
构造器概要
构造器 构造器 说明 ImageStream()ImageStream(byte[] bytes)ImageStream(byte[] bytes, ByteOrder byteOrder)ImageStream(int size)ImageStream(int size, ByteOrder byteOrder)ImageStream(ByteBuffer buffer)ImageStream(ByteOrder byteOrder)
-
方法概要
修饰符和类型 方法 说明 ImageStreamalign(int alignment)voidensure(int needs)intget()voidget(byte[] bytes, int offset, int size)ByteBuffergetBuffer()byte[]getBytes()intgetInt()longgetLong()intgetPosition()intgetShort()intgetSize()booleanhasByte()booleanhasBytes(int needs)ImageStreamput(byte byt)ImageStreamput(byte[] bytes, int offset, int size)ImageStreamput(int byt)ImageStreamput(ImageStream stream)ImageStreamputInt(int value)ImageStreamputLong(long value)ImageStreamputShort(int value)ImageStreamputShort(short value)voidsetPosition(int offset)voidskip(int n)byte[]toArray()
-
-
-
构造器详细资料
-
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()
-
-