|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.libraries.asm.ByteVector
public class ByteVector
A dynamically extensible vector of bytes. This class is roughly equivalent to a DataOutputStream on top of a ByteArrayOutputStream, but is more efficient.
Constructor Summary | |
---|---|
ByteVector() Constructs a new ByteVector with a default initial size. |
|
ByteVector(int initialSize) Constructs a new ByteVector with the given initial size. |
Method Summary | |
---|---|
ByteVector |
putByte(int b) Puts a byte into this byte vector. |
ByteVector |
putByteArray(byte[] b, int off, int len) Puts an array of bytes into this byte vector. |
ByteVector |
putInt(int i) Puts an int into this byte vector. |
ByteVector |
putLong(long l) Puts a long into this byte vector. |
ByteVector |
putShort(int s) Puts a short into this byte vector. |
ByteVector |
putUTF8(java.lang.String s) Puts an UTF8 string into this byte vector. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteVector()
ByteVector
with a default initial size.public ByteVector(int initialSize)
ByteVector
with the given initial size.
initialSize
- the initial size of the byte vector to be constructed.Method Detail |
---|
public ByteVector putByte(int b)
b
- a byte.public ByteVector putShort(int s)
s
- a short.public ByteVector putInt(int i)
i
- an int.public ByteVector putLong(long l)
l
- a long.public ByteVector putUTF8(java.lang.String s)
s
- a String.public ByteVector putByteArray(byte[] b, int off, int len)
b
- an array of bytes. May be null to put len null bytes into this byte vector.off
- index of the fist byte of b that must be copied.len
- number of bytes of b that must be copied.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |