Code example for ByteArrayBuffer

Methods: byteAt

0
    } 
    //l 
    public static int getShortPacketLength(ByteArrayBuffer buf)
    { 
    	//Log.d("LTData", "getShortPacketLength"); 
        return (buf.byteAt(1) & 0xf0) == 0xf0 ? -1 : ((buf.byteAt(1) & 0xf0) >> 4);
    } 
    public static int getSpecialPacketLength(ByteArrayBuffer buf)
    { 
    	//Log.d("LTData", "getSpecialPacketLength"); 
        return 0; 
    } 
     
    public static boolean loadSeasonData(InputStream is)
    { 
    	//Log.d("LTData", "loadSeasonData"); 
    	ltTeams.clear();
    	ltEvents.clear();
    	XmlPullParser parser = Xml.newPullParser();
    	 
    	try