public class Asn1NasEncodeBuffer extends Asn1EncodeBitBuffer
mByteIndex, mData, mTraceHandlerINITIAL_SIZEcontext, mTypeCode| Constructor and Description |
|---|
Asn1NasEncodeBuffer()
This constructor creates an encode buffer object with the
default initial size.
|
Asn1NasEncodeBuffer(int size)
This constructor creates an encode buffer object with the
given initial size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encodeAltDetmnt(int detmnt,
int detmntBits,
int lhmask)
Encode the given alternative determinant value in the given number of
bits, translating L/H bits according to the pattern 0x2B and based on the
buffer's bit offset.
|
void |
encodeAPN(java.lang.String apn)
Encode an APN string, given using dot-notation (a.b.c), following
TS 24.008 and TS 23.003.
|
void |
encodeBitsPattern(byte pattern,
int nbits)
This function encodes the given number of bits using a repeating bit
pattern.
|
void |
encodeByteAlignPattern(byte pattern)
This function will byte-align the buffer by encoding according to the
given pattern.
|
void |
encodeMCCMNC(Asn1IA5String mcc,
Asn1IA5String mnc)
Encode an MCC-MNC pair.
|
void |
encodeMobileIdentityType1(int type,
java.lang.String str)
Encode alternatives of MobileIdentity.
|
byte |
getPatternBit(byte pattern)
This function picks out the bit from the given pattern that corresponds
to the current bit offset in buffer.
|
boolean |
isContainerClosed()
Return true if the container closed flag is set.
|
void |
setContainerClosed(boolean value)
Set or clear the container closed flag.
|
binDump, byteAlign, checkSize, copy, copy, encodeBit, encodeBits, encodeBits, encodeBits, encodeLongBits, encodeLongBits, getBitOffsetInByte, getBuffer, getByteArrayInputStream, getByteIndex, getMsgBitCnt, getMsgByteCnt, getMsgCopy, getMsgLength, getTraceHandler, hexDump, isByteAligned, reset, reverseBytes, setMsgBitCnt, toString, write, write, write, writebinDump, copy, encodeIntSigned, encodeIntUnsigned, getInputStream, getMinimalOctetsSigned, getMinimalOctetsUnsigned, getOutputStream, hexDumpaddNamedEventHandler, getEventHandlerListCount, hasEventHandlers, invokeCharacters, invokeEndElement, invokeStartElement, setEventHandlerListgetContext, hexDump, hexDump, setKey, setTypeCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInputStreampublic Asn1NasEncodeBuffer()
public Asn1NasEncodeBuffer(int size)
size - The initial size in bytes of an encode buffer.public final void encodeAltDetmnt(int detmnt,
int detmntBits,
int lhmask)
detmnt - The determinant value to encode (in lowest bits)detmntBits - The number of bits from detmnt to encode.lhmask - A mask which indicates whether each bit in detmnt is a
0/1 bit or an L/H bit. L/H bits are represented in
detmnt using 0/1, respectively. This is left-aligned so
that the highest bit in the mask applies to the first
bit to be encoded.public void encodeAPN(java.lang.String apn)
apn - The APN to encode.public void encodeBitsPattern(byte pattern,
int nbits)
pattern - The repeating pattern.nbits - The number of bits to encode.public final void encodeByteAlignPattern(byte pattern)
public void encodeMCCMNC(Asn1IA5String mcc, Asn1IA5String mnc) throws java.io.IOException
mcc - mnc - java.io.IOExceptionpublic final void encodeMobileIdentityType1(int type,
java.lang.String str)
type - Identifies the alternative used. Values correspond to the
values generated for choice for MobileIdentity:
IMSI = 1
IMEI = 2
IMEISV = 3
TMSI = 4
TMGI = 5str - The value of the alternative.public final byte getPatternBit(byte pattern)
public final boolean isContainerClosed()
public final void setContainerClosed(boolean value)
value -