Class ByteBuffer
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.encoding.ByteBuffer
-
- All Implemented Interfaces:
Serializable
public class ByteBuffer extends Object implements Serializable
A simple byte buffer. The length specifies the fill level of the data-array.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteBuffer(byte[] data)
ByteBuffer(byte[] data, int offset, int length)
ByteBuffer(int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ensureSize(int length)
int
getCursor()
byte[]
getData()
int
getLength()
int
getOffset()
void
setCursor(int cursor)
void
setData(byte[] data, int length, int offset)
-
-
-
Method Detail
-
getData
public byte[] getData()
-
setData
public void setData(byte[] data, int length, int offset)
-
getLength
public int getLength()
-
getOffset
public int getOffset()
-
getCursor
public int getCursor()
-
ensureSize
public void ensureSize(int length)
-
setCursor
public void setCursor(int cursor)
-
-