Home » openjdk-7 » com.sun.tools » javac » util » [javadoc | source]
public class: ByteBuffer [javadoc | source]
A byte buffer is a flexible array which grows when elements are appended. There are also methods to append names to byte buffers and to convert byte buffers to names.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Field Summary
public  byte[] elems    An array holding the bytes in this buffer; can be grown. 
public  int length    The current number of defined bytes in this buffer. 
 public ByteBuffer() 
 public ByteBuffer(int initialSize) 
Method from com.sun.tools.javac.util.ByteBuffer Summary:
appendByte,   appendBytes,   appendBytes,   appendChar,   appendDouble,   appendFloat,   appendInt,   appendLong,   appendName,   reset,   toName
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.util.ByteBuffer Detail:
 public  void appendByte(int b) 
    Append byte to this buffer.
 public  void appendBytes(byte[] bs) 
    Append all bytes from given byte array.
 public  void appendBytes(byte[] bs,
    int start,
    int len) 
    Append `len' bytes from byte array, starting at given `start' offset.
 public  void appendChar(int x) 
    Append a character as a two byte number.
 public  void appendDouble(double x) 
    Append a double as a eight byte number.
 public  void appendFloat(float x) 
    Append a float as a four byte number.
 public  void appendInt(int x) 
    Append an integer as a four byte number.
 public  void appendLong(long x) 
    Append a long as an eight byte number.
 public  void appendName(Name name) 
    Append a name.
 public  void reset() 
    Reset to zero length.
 public Name toName(Names names) 
    Convert contents to name.