org.rythmengine.utils
Class TextBuilder.StrBuf

java.lang.Object
  extended by org.rythmengine.utils.TextBuilder.StrBuf
Enclosing class:
TextBuilder

protected static final class TextBuilder.StrBuf
extends Object

A data structure used to store both character based content and it's binary byte array. This is used to optimize the performance when Rythm is used to output to a binary outputstream, where the


Constructor Summary
TextBuilder.StrBuf(String s)
           
TextBuilder.StrBuf(String s, byte[] ba)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 byte[] toBinary()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextBuilder.StrBuf

public TextBuilder.StrBuf(String s,
                          byte[] ba)

TextBuilder.StrBuf

public TextBuilder.StrBuf(String s)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toBinary

public byte[] toBinary()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.