Code example for ByteArrayBuffer

Methods: buffer, length

0
 
        public String getData() {
            if (mData == null) {
                return null; 
            } else { 
                return new String(mData.buffer(), 0, mData.length());
            } 
        } 
 
        public ByteArrayBuffer getByteData() {
            return mData;
        } 
 
        @Override 
        public String toString() {
            return "Response [" + mStatus + "(" + mInnerStatus + ") " + mMime + " " + mData + "]";
        } 
    } 
 
    private static class HttpThread extends Thread {
        public static abstract class HttpThreadAction {