Code example for ByteArrayOutputStream

Methods: write

    public static void writeLength(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) {
class SelectItemResponseData extends ResponseData { 
    // members 
    private int id;
    public SelectItemResponseData(int id) {
        super(); = id;
Connect your IDE to all the code out there  Get Codota for Java