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

How to use
putUTF8
method
in
jersey.repackaged.org.objectweb.asm.ByteVector

Best Java code snippets using jersey.repackaged.org.objectweb.asm.ByteVector.putUTF8 (Showing top 7 results out of 315)

origin: com.sun.jersey/jersey-server

/**
 * 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.glassfish.jersey.core/jersey-server

/**
 * 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: com.sun.jersey/jersey-bundle

/**
 * 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: jersey/jersey-1.x

/**
 * 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.glassfish.jersey.bundles/jaxrs-ri

/**
 * 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: eclipse-ee4j/jersey

/**
 * 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: eclipse-ee4j/jersey

/**
 * 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;
}
jersey.repackaged.org.objectweb.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 with the given initial size.
  • encodeUTF8
    Puts an UTF8 string into this byte vector. The byte vector is automatically enlarged if necessary. T
  • enlarge
    Enlarge this byte vector so that it can receive n 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.
  • addElement
  • toArray
  • addElement,
  • toArray

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JPanel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now