Package components

Examples of components.StringConstant


  }
  newchain = new Str2ID((int)Math.ceil(1.25 * count));

  for (chain = this; chain != null; chain = chain.next) {
      UnicodeConstant strings[] = chain.strings;
      StringConstant  parameters[] = chain.parameters;
      for (int i = chain.hashTableSize; --i >= 0; ) {
          UnicodeConstant string = strings[i];
    if (string != null)
        newchain.getID(string, parameters == null ? null : parameters[i]);
      }
View Full Code Here


    public StringBuffer data;
    private int    aggregateSize;
    private int    stringIndex = 0;

    public void intern( StringConstant s ){
  StringConstant t = (StringConstant)htable.get( s );
  if ( t == null ){
      htable.put( s, s );
      stringHash.getID( s.str , s );
      aggregateSize += s.str.string.length();
      s.unicodeIndex = stringIndex++;
View Full Code Here

   */
  data = new StringBuffer( aggregateSize );
  int curOffset = 0;
  Enumeration s = allStrings();
  while ( s.hasMoreElements() ){
      StringConstant t = (StringConstant)s.nextElement();
      t.unicodeOffset = curOffset;
      data.append( t.str.string );
      curOffset += t.str.string.length();
  }
  return curOffset;
View Full Code Here

TOP

Related Classes of components.StringConstant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.