Package com.itextpdf.io.source
Class ByteBuffer
- java.lang.Object
-
- com.itextpdf.io.source.ByteBuffer
-
public class ByteBuffer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ByteBuffer()ByteBuffer(int size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufferappend(byte b)ByteBufferappend(byte[] b)ByteBufferappend(byte[] b, int off, int len)ByteBufferappend(int b)ByteBufferappend(java.lang.String str)ByteBufferappendHex(byte b)intcapacity()byteget(int index)static intgetHex(int v)byte[]getInternalBuffer()booleanisEmpty()(package private) ByteBufferprepend(byte b)FillByteBufferfrom the end.(package private) ByteBufferprepend(byte[] b)FillByteBufferfrom the end.ByteBufferreset()intsize()booleanstartsWith(byte[] b)byte[]toByteArray()byte[]toByteArray(int off, int len)
-
-
-
Method Detail
-
getHex
public static int getHex(int v)
-
append
public ByteBuffer append(byte b)
-
append
public ByteBuffer append(byte[] b, int off, int len)
-
append
public ByteBuffer append(byte[] b)
-
append
public ByteBuffer append(int b)
-
append
public ByteBuffer append(java.lang.String str)
-
appendHex
public ByteBuffer appendHex(byte b)
-
get
public byte get(int index)
-
getInternalBuffer
public byte[] getInternalBuffer()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
capacity
public int capacity()
-
reset
public ByteBuffer reset()
-
toByteArray
public byte[] toByteArray(int off, int len)
-
toByteArray
public byte[] toByteArray()
-
startsWith
public boolean startsWith(byte[] b)
-
prepend
ByteBuffer prepend(byte b)
FillByteBufferfrom the end. Set byte atcapacity() - size() - 1position.- Parameters:
b-byte.- Returns:
ByteBuffer.
-
prepend
ByteBuffer prepend(byte[] b)
FillByteBufferfrom the end. Set bytes fromcapacity() - size() - b.lengthposition.- Parameters:
b-byte.- Returns:
ByteBuffer.
-
-