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 aroundByteBufferto comply with the encoding rules defined by thePACTYPEstructure 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 PacDataBufferalign(int bytes)PacDataBufferget(byte[] dst)intgetInt()longgetUnsignedInt()BigIntegergetUnsignedLong()intgetUnsignedShort()intposition()PacDataBufferposition(int newPosition)PacDataBufferskip(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()
-
-