Codota Logo
ByteVector.putUTF8
Code IndexAdd Codota to your IDE (free)

How to use
putUTF8
method
in
org.mvel2.asm.ByteVector

Best Java code snippets using org.mvel2.asm.ByteVector.putUTF8 (Showing top 4 results out of 315)

  • Common ways to obtain ByteVector
private void myMethod () {
ByteVector b =
  • Codota Iconnew ByteVector()
  • Codota Iconnew ByteVector(initialCapacity)
  • Smart code suggestions by Codota
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

public void visitSource(final String file, final String debug) {
  if (file != null) {
    sourceFile = newUTF8(file);
  }
  if (debug != null) {
    sourceDebug = new ByteVector().putUTF8(debug);
  }
}
origin: org.mvel/mvel2

/**
 * Adds a CONSTANT_Utf8_info to the constant pool of this symbol table. Does nothing if the
 * constant pool already contains a similar item.
 *
 * @param value a string.
 * @return a new or already existing Symbol with the given value.
 */
int addConstantUtf8(final String value) {
 int hashCode = hash(Symbol.CONSTANT_UTF8_TAG, value);
 Entry entry = get(hashCode);
 while (entry != null) {
  if (entry.tag == Symbol.CONSTANT_UTF8_TAG
    && entry.hashCode == hashCode
    && entry.value.equals(value)) {
   return entry.index;
  }
  entry = entry.next;
 }
 constantPool.putByte(Symbol.CONSTANT_UTF8_TAG).putUTF8(value);
 return put(new Entry(constantPoolCount++, Symbol.CONSTANT_UTF8_TAG, value, hashCode)).index;
}
origin: io.virtdata/virtdata-lib-realer

/**
 * Adds an UTF8 string to the constant pool of the class being build. Does
 * nothing if the constant pool already contains a similar item. <i>This
 * method is intended for {@link Attribute} sub classes, and is normally not
 * needed by class generators or adapters.</i>
 * 
 * @param value
 *            the String value.
 * @return the index of a new or already existing UTF8 item.
 */
public int newUTF8(final String value) {
  key.set(UTF8, value, null, null);
  Item result = get(key);
  if (result == null) {
    pool.putByte(UTF8).putUTF8(value);
    result = new Item(index++, key);
    put(result);
  }
  return result.index;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

/**
 * Adds an UTF8 string to the constant pool of the class being build. Does
 * nothing if the constant pool already contains a similar item. <i>This
 * method is intended for {@link Attribute} sub classes, and is normally not
 * needed by class generators or adapters.</i>
 *
 * @param value the String value.
 * @return the index of a new or already existing UTF8 item.
 */
public int newUTF8(final String value) {
  key.set(UTF8, value, null, null);
  Item result = get(key);
  if (result == null) {
    pool.putByte(UTF8).putUTF8(value);
    result = new Item(index++, key);
    put(result);
  }
  return result.index;
}
org.mvel2.asmByteVectorputUTF8

Javadoc

Puts an UTF8 string into this byte vector. The byte vector is automatically enlarged if necessary.

Popular methods of ByteVector

  • <init>
    Constructs a new ByteVector from the given initial data.
  • enlarge
    Enlarges this byte vector so that it can receive 'size' more bytes.
  • put11
    Puts two bytes into this byte vector. The byte vector is automatically enlarged if necessary.
  • put12
    Puts a byte and a short into this byte vector. The byte vector is automatically enlarged if necessar
  • putByte
    Puts a byte into this byte vector. The byte vector is automatically enlarged if necessary.
  • putByteArray
    Puts an array of bytes into this byte vector. The byte vector is automatically enlarged if necessary
  • putInt
    Puts an int into this byte vector. The byte vector is automatically enlarged if necessary.
  • putLong
    Puts a long into this byte vector. The byte vector is automatically enlarged if necessary.
  • putShort
    Puts a short into this byte vector. The byte vector is automatically enlarged if necessary.
  • encodeUTF8
    Puts an UTF8 string into this byte vector. The byte vector is automatically enlarged if necessary. T
  • encodeUtf8
    Puts an UTF8 string into this byte vector. The byte vector is automatically enlarged if necessary. T
  • put112
    Puts two bytes and a short into this byte vector. The byte vector is automatically enlarged if neces
  • encodeUtf8,
  • put112,
  • put122

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • findViewById (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now