|
|||||||||
| Home >> All >> org >> apache >> http >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.http.io
Class ByteArrayBuffer

java.lang.Objectorg.apache.http.io.ByteArrayBuffer
- public final class ByteArrayBuffer
- extends java.lang.Object
A resizable byte array.
- Since:
- 4.0
- Version:
- $Revision: 390878 $
| Field Summary | |
private byte[] |
buffer
|
private int |
len
|
| Constructor Summary | |
ByteArrayBuffer(int capacity)
|
|
| Method Summary | |
void |
append(byte[] b,
int off,
int len)
|
void |
append(char[] b,
int off,
int len)
|
void |
append(CharArrayBuffer b,
int off,
int len)
|
void |
append(int b)
|
byte[] |
buffer()
|
int |
byteAt(int i)
|
int |
capacity()
|
void |
clear()
|
private void |
expand(int newlen)
|
boolean |
isEmpty()
|
boolean |
isFull()
|
int |
length()
|
void |
setLength(int len)
|
byte[] |
toByteArray()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
buffer
private byte[] buffer
len
private int len
| Constructor Detail |
ByteArrayBuffer
public ByteArrayBuffer(int capacity)
| Method Detail |
expand
private void expand(int newlen)
append
public void append(byte[] b,
int off,
int len)
append
public void append(int b)
append
public void append(char[] b,
int off,
int len)
append
public void append(CharArrayBuffer b, int off, int len)
clear
public void clear()
toByteArray
public byte[] toByteArray()
byteAt
public int byteAt(int i)
capacity
public int capacity()
length
public int length()
buffer
public byte[] buffer()
setLength
public void setLength(int len)
isEmpty
public boolean isEmpty()
isFull
public boolean isFull()
|
|||||||||
| Home >> All >> org >> apache >> http >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.http.io.ByteArrayBuffer