Package net.sf.michaelo.tomcat.pac
Class PacDataBuffer
- java.lang.Object
-
- net.sf.michaelo.tomcat.pac.PacDataBuffer
-
public class PacDataBuffer extends Object
A thin wrapper aroundByteBuffer
to comply with the encoding rules defined by thePACTYPE
structure from MS-PAC.
-
-
Constructor Summary
Constructors Constructor Description PacDataBuffer(byte[] pacDataBytes)
Constructs a PAC data buffer from a byte array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PacDataBuffer
align(int bytes)
PacDataBuffer
get(byte[] dst)
int
getInt()
long
getUnsignedInt()
BigInteger
getUnsignedLong()
int
getUnsignedShort()
int
position()
PacDataBuffer
position(int newPosition)
PacDataBuffer
skip(int bytes)
-
-
-
Method Detail
-
position
public int position()
-
position
public PacDataBuffer position(int newPosition)
-
skip
public PacDataBuffer skip(int bytes)
-
align
protected PacDataBuffer align(int bytes)
-
get
public PacDataBuffer get(byte[] dst)
-
getInt
public int getInt()
-
getUnsignedShort
public int getUnsignedShort()
-
getUnsignedInt
public long getUnsignedInt()
-
getUnsignedLong
public BigInteger getUnsignedLong()
-
-