AsciiCP.java :  » Byte-Code » Jasmin-2.4 » jas » Java Open Source

Java Open Source » Byte Code » Jasmin 2.4 
Jasmin 2.4 » jas » AsciiCP.java
/**
 * This is a class to create Ascii CP entries.
 *
 * @author $Author: jonmeyerny $
 * @version $Revision: 1.1 $
 */

package jas;

import java.io.*;


public class AsciiCP extends CP implements RuntimeConstants
{
  /**
   * @param s Name of the ascii constant pool entry
   */
  public AsciiCP(String s)
  { uniq = s.intern(); }
  void resolve(ClassEnv e)
  { return; }

  public String toString() { return "AsciiCP: " + uniq; }
  void write(ClassEnv e, DataOutputStream out)
    throws IOException
  {
    out.writeByte(CONSTANT_UTF8);
    out.writeUTF(uniq);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.