FileDocCategorySizeDatePackage
ResponseData.javaAPI DocAndroid 5.1 API8489Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.cat

ResponseData

public abstract class ResponseData extends Object

Fields Summary
Constructors Summary
Methods Summary
public abstract voidformat(java.io.ByteArrayOutputStream buf)
Format the data appropriate for TERMINAL RESPONSE and write it into the ByteArrayOutputStream object.

public static voidwriteLength(java.io.ByteArrayOutputStream buf, int length)

        // As per ETSI 102.220 Sec7.1.2, if the total length is greater
        // than 0x7F, it should be coded in two bytes and the first byte
        // should be 0x81.
        if (length > 0x7F) {
            buf.write(0x81);
        }
        buf.write(length);