to top
Android APIs
public final class

ByteArrayBuffer

extends Object
java.lang.Object
   ↳ org.apache.http.util.ByteArrayBuffer

Class Overview

A resizable byte array.

Summary

Public Constructors
ByteArrayBuffer(int capacity)
Public Methods
void append(int b)
void append(char[] b, int off, int len)
void append(byte[] b, int off, int len)
void append( CharArrayBuffer b, int off, int len)
byte[] buffer()
int byteAt(int i)
int capacity()
void clear()
boolean isEmpty()
boolean isFull()
int length()
void setLength(int len)
byte[] toByteArray()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ByteArrayBuffer (int capacity)

Added in API level 1

Public Methods

public void append (int b)

Added in API level 1

public void append (char[] b, int off, int len)

Added in API level 1

public void append (byte[] b, int off, int len)

Added in API level 1

public void append (CharArrayBuffer b, int off, int len)

Added in API level 1

public byte[] buffer ()

Added in API level 1

public int byteAt (int i)

Added in API level 1

public int capacity ()

Added in API level 1

public void clear ()

Added in API level 1

public boolean isEmpty ()

Added in API level 1

public boolean isFull ()

Added in API level 1

public int length ()

Added in API level 1

public void setLength (int len)

Added in API level 1

public byte[] toByteArray ()

Added in API level 1

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.