Logo Search packages:      
Sourcecode: airport-utils version File versions  Download package

airport::AirportInfoRecord Class Reference

List of all members.


Detailed Description

This class defines a structure to hold information about the location and format (type) of a piece of information in the Airport memory block. Location is specified by a triple: the object identifier number (1 to 68), row in the block (0 to 15), and column (0 to 15), where the ByteBlockWindow begins; size of the window is specified by giving the number of rows and columns in the window; and the datatype is specified as one of the class's constants.

The class also implements a toString() method which provides a pretty-printed representation of the value in the window based on its datatype, and a setBytesFromString() method which writes a value to the window given an appropriately formatted String representation.

Definition at line 45 of file AirportInfoRecord.java.


Public Member Functions

 AirportInfoRecord (String tag, String description, int dataType, int encryption, int maxLength)
 AirportInfoRecord (String tag, String description, int dataType, int encryption, int maxLength, byte[] value)
 AirportInfoRecord (int dataType, ByteBlockWindow window)
 AirportInfoRecord (int baseStartIndex, int numRows, int numCols, int dataType, ByteBlock baseBlock)
 AirportInfoRecord (String tag, String description, int dataType, int encryption, int maxLength)
 AirportInfoRecord (String tag, String description, int dataType, int encryption, int maxLength, byte[] value)
void clearWindow ()
void clearWindow ()
void clearWindow ()
byte[] getRequestBytes ()
byte[] getRequestBytes ()
byte[] getUpdateBytes ()
byte[] getUpdateBytes ()
byte[] getValue ()
byte[] getValue ()
void setBytesFromString (String valueString) throws ValueFormatException
void setBytesFromString (String valueString) throws ValueFormatException
void setBytesFromString (String valueString) throws ValueFormatException
void setValue (byte[] bytes)
void setValue (byte[] bytes)
String toString ()
String toString ()
String toString ()

Static Public Member Functions

static char decodePhoneDigit (byte digit)
static byte[] decryptBytes (byte[] cipherString, byte[] encryptedString)
static byte[] decryptBytes (byte[] cipherString, byte[] encryptedString)
static byte encodePhoneDigit (char digit) throws NumberFormatException
static byte[] encryptBytes (byte[] cipherString, byte[] encryptedString)
static byte[] encryptBytes (byte[] cipherString, byte[] encryptedString)

Public Attributes

ByteBlockWindow byteBlockWindow
int dataType
String description
int encryption
int maxLength
String tag
byte[] value

Static Public Attributes

static final int BYTE = 5
static final int BYTE_STRING = 2
static final int CHAR_STRING = 0
static byte[] cipherBytes
static final int ENCRYPTED = 2
static final int IP_ADDRESS = 1
static final int LITTLE_ENDIAN_UNSIGNED_INTEGER = 6
static final int PHONE_NUMBER = 3
static final int UNENCRYPTED = 0
static final int UNSIGNED_INTEGER = 4

Private Member Functions

byte[] convertFromHexString (String hexString) throws ValueFormatException
byte[] convertFromHexString (String hexString) throws ValueFormatException
byte[] convertFromHexString (String hexString) throws ValueFormatException
byte[] convertFromIPv4Address (String addressString) throws ValueFormatException
byte[] convertFromIPv4Address (String addressString) throws ValueFormatException
byte[] convertFromIPv4Address (String addressString) throws ValueFormatException
byte[] convertFromPhoneNumber (String phoneNumber) throws ValueFormatException
byte[] convertFromUnsignedInteger (String valueString) throws ValueFormatException
byte[] convertFromUnsignedInteger (String valueString) throws ValueFormatException
byte[] convertFromUnsignedInteger (String valueString) throws ValueFormatException
String convertToCharString (byte[] bytes)
String convertToCharString (byte[] bytes)
String convertToIPAddress (byte[] bytes)
String convertToIPAddress (byte[] bytes)
String convertToIPAddress (byte[] bytes)
String convertToPhoneNumber (byte[] bytes)
String convertToUnsignedInteger (byte[] bytes)
String convertToUnsignedInteger (byte[] bytes)
String convertToUnsignedInteger (byte[] bytes)
int getIntegerValue (byte[] valueBytes)
int getIntegerValue (byte[] valueBytes)
String hexByte (byte b)
String hexByte (byte b)
String hexBytes (byte[] bytes)
String hexBytes (byte[] bytes)
byte[] reverseBytes (byte[] inBytes)
byte[] reverseBytes (byte[] inBytes)
byte[] reverseBytes (byte[] inBytes)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index