Tabnine Logo
ByteChunk.indexOf
Code IndexAdd Tabnine to your IDE (free)

How to use
indexOf
method
in
org.glassfish.grizzly.http.util.ByteChunk

Best Java code snippets using org.glassfish.grizzly.http.util.ByteChunk.indexOf (Showing top 20 results out of 315)

origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: org.glassfish.grizzly/grizzly-http

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  int ret = indexOf( buff, start+starting, end, c);
  return (ret >= start) ? ret - start : -1;
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: org.glassfish.grizzly/grizzly-http

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param c the character
 * @param starting The start position
 */
public int indexOf(char c, int starting) {
  switch (type) {
    case T_STR:
      return strValue.indexOf( c, starting );
    case T_CHARS:
      return charC.indexOf( c, starting);
    case T_BYTES:
      return byteC.indexOf( c, starting );
    default:
      return -1;
  }
}
org.glassfish.grizzly.http.utilByteChunkindexOf

Javadoc

Returns true if the message bytes starts with the specified string.

Popular methods of ByteChunk

  • getBuffer
    Returns the message bytes.
  • getEnd
  • getStart
    Returns the start offset of the bytes. For output this is the end of the buffer.
  • <init>
  • append
    Add data to the buffer
  • getBytes
    Returns the message bytes.
  • getLength
    Returns the length of the bytes. XXX need to clean this up
  • setBytes
    Sets the message bytes to the specified sub-array of bytes.
  • setEnd
  • toString
  • allocate
  • canGrow
  • allocate,
  • canGrow,
  • delete,
  • equals,
  • equalsIgnoreCase,
  • equalsIgnoreCaseLowerCase,
  • flushBuffer,
  • getCharset,
  • getInt

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Join (org.hibernate.mapping)
  • Top Vim plugins
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