类 ByteArrayBuffer
java.lang.Object
com.sh.mail.mime4j.util.ByteArrayBuffer
- 所有已实现的接口:
ByteSequence
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
字段概要
从接口继承的字段 com.sh.mail.mime4j.util.ByteSequence
EMPTY -
构造器概要
构造器构造器说明ByteArrayBuffer(byte[] bytes, boolean dontCopy) ByteArrayBuffer(byte[] bytes, int len, boolean dontCopy) ByteArrayBuffer(int capacity) -
方法概要
修饰符和类型方法说明voidappend(byte[] b, int off, int len) voidappend(int b) byte[]buffer()bytebyteAt(int i) intcapacity()voidclear()intindexOf(byte b) intindexOf(byte b, int beginIndex, int endIndex) booleanisEmpty()booleanisFull()intlength()Returns the length of this byte sequence.voidremove(int off, int len) voidsetLength(int len) byte[]Copies the contents of this byte sequence into a newly allocated byte array and returns that array.toString()
-
构造器详细资料
-
ByteArrayBuffer
public ByteArrayBuffer(int capacity) -
ByteArrayBuffer
public ByteArrayBuffer(byte[] bytes, boolean dontCopy) -
ByteArrayBuffer
public ByteArrayBuffer(byte[] bytes, int len, boolean dontCopy)
-
-
方法详细资料
-
append
public void append(byte[] b, int off, int len) -
append
public void append(int b) -
clear
public void clear() -
toByteArray
public byte[] toByteArray()从接口复制的说明:ByteSequenceCopies the contents of this byte sequence into a newly allocated byte array and returns that array.- 指定者:
toByteArray在接口中ByteSequence- 返回:
- a byte array holding a copy of this byte sequence.
-
byteAt
public byte byteAt(int i) - 指定者:
byteAt在接口中ByteSequence
-
capacity
public int capacity() -
length
public int length()从接口复制的说明:ByteSequenceReturns the length of this byte sequence.- 指定者:
length在接口中ByteSequence- 返回:
- the number of
bytes in this sequence.
-
buffer
public byte[] buffer() -
indexOf
public int indexOf(byte b) -
indexOf
public int indexOf(byte b, int beginIndex, int endIndex) -
setLength
public void setLength(int len) -
remove
public void remove(int off, int len) -
isEmpty
public boolean isEmpty() -
isFull
public boolean isFull() -
toString
-