Class ArrayMaker

java.lang.Object
org.codehaus.staxmate.util.ArrayMaker

public class ArrayMaker extends Object
Simple helper class used to create compact array presentations where the eventual size is not initially known.
  • Field Details

    • mData

      private Object[] mData
    • mLastIndex

      private int mLastIndex
  • Constructor Details

    • ArrayMaker

      public ArrayMaker()
  • Method Details

    • addEntry

      public void addEntry(int index, Object value)
    • toArray

      public Object[] toArray(Object[] result)
      Parameters:
      result - Array in which results are to be added (if it's big enough); or if not big enough, one that indicates type of the array to create. If null, a generic Object[] is created, used and returned.