public final class AuthorityAndFormatIds extends Object
put(String,int,int,int,DSPCodec)
.Modifier and Type | Method and Description |
---|---|
static DSPCodec |
getDSPCodec(String afi)
Gets the DSPCodec to use for encoding and decoding the DSP for the given AFI.
|
static int |
getIDIMaxLength(String afi)
Gets the maximum length of IDI for the given AFI.
|
static int |
getIDIMinLength(String afi)
Gets the minimum length of IDI for the given AFI.
|
static int |
getIDIPaddingDigit(String afi)
Gets the semi-octet value to use for leading padding of an IDI for the given AFI (0 or 1).
|
static void |
put(String afi,
int idiMinLength,
int idiMaxLength,
int idiPaddingDigit,
DSPCodec dspCodec)
Adds properties of an Authority and Format Identifier to a map of known AFIs.
|
public static void put(String afi, int idiMinLength, int idiMaxLength, int idiPaddingDigit, DSPCodec dspCodec) throws AFIAlreadyPutException
afi
- new Authority and Format IdentifieridiMinLength
- minimum length of Initial Domain IdentifieridiMaxLength
- maximum length of Initial Domain IdentifieridiPaddingDigit
- semi-octet value with which to pad IDI (0 or 1)dspCodec
- indicates codec for domain specific partAFIAlreadyPutException
- if AFI already has related propertiespublic static int getIDIMinLength(String afi) throws AFIUnknownException
afi
- Authority and Format IdentifierAFIUnknownException
- if properties of AFI are unknownpublic static int getIDIMaxLength(String afi) throws AFIUnknownException
afi
- Authority and Format IdentifierAFIUnknownException
- if properties of AFI are unknownpublic static int getIDIPaddingDigit(String afi) throws AFIUnknownException
afi
- Authority and Format IdentifierAFIUnknownException
- if properties of AFI are unknownpublic static DSPCodec getDSPCodec(String afi) throws AFIUnknownException
afi
- Authority and Format IdentifierAFIUnknownException
- if properties of AFI are unknown