Skip to content

Most visited

Recently visited

navigation

ByteArrayBuffer | Android Developers

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

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.