com.partnersoft.v3x.data
Class CharBuffer

java.lang.Object
  extended by com.partnersoft.v3x.data.GrowableArray
      extended by com.partnersoft.v3x.data.CharBuffer

public class CharBuffer
extends GrowableArray

A fast char array buffer with public access to contents. Intended for fast and unsafe operations.


Field Summary
 char[] array
           
 
Fields inherited from class com.partnersoft.v3x.data.GrowableArray
arrayObject, capacity, end, growthCap, growthMin, start
 
Constructor Summary
CharBuffer()
          Creates an empty char buffer.
CharBuffer(int size)
          Creates a char buffer of the given size.
 
Method Summary
 void newArray(int size)
          Allocates a new, empty array of the given size and assign it to the arrayObject property.
 
Methods inherited from class com.partnersoft.v3x.data.GrowableArray
append, clear, clone, getSize, makeRoomFor, makeRoomFor, pack, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

array

public char[] array
Constructor Detail

CharBuffer

public CharBuffer()
Creates an empty char buffer. buffer is left null!


CharBuffer

public CharBuffer(int size)
Creates a char buffer of the given size.

Method Detail

newArray

public void newArray(int size)
Description copied from class: GrowableArray
Allocates a new, empty array of the given size and assign it to the arrayObject property. It is assumed that subclasses will also set it to a variable of the correct class (e.g. char[]) for ease of access as well. Copying of existing contents is managed by this superclass.

Specified by:
newArray in class GrowableArray