Class ByteBuilder

java.lang.Object
jebl.evolution.io.ByteBuilder
All Implemented Interfaces:
Appendable, CharSequence

public class ByteBuilder extends Object implements CharSequence, Appendable
Similar to a StringBuilder, but its internal buffer is a byte[] with one entry for each character, so it can only correctly append single-byte characters.
Version:
$Id: ByteBuilder.java 879 2008-01-31 04:23:43Z twobeers $
Author:
Joseph Heled
  • Constructor Details

    • ByteBuilder

      public ByteBuilder(int maxCapacity)
      Constructs a ByteBuilder that will never grow beyond maxCapacity bytes in length. If you don't want to limit the size this ByteBuilder can grow to, you should pass in Integer.MAX_VALUE here
      Parameters:
      maxCapacity - The maximum, NOT the initial capacity of this ByteBuilder
  • Method Details