Tabnine Logo
BufferChunk.setEnd
Code IndexAdd Tabnine to your IDE (free)

How to use
setEnd
method
in
org.glassfish.grizzly.http.util.BufferChunk

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

origin: javaee/grizzly

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: javaee/grizzly

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: org.glassfish.grizzly/grizzly-http

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: javaee/grizzly

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: javaee/grizzly

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: javaee/grizzly

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: javaee/grizzly

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: javaee/grizzly

/**
 * Sets the <tt>DataChunk</tt> end position.
 *
 * @param end the <tt>DataChunk</tt> end position.
 */
@Override
public void setEnd(int end) {
  switch (type) {
    case Bytes:
      byteChunk.setEnd(end);
      break;
    case Buffer:
      bufferChunk.setEnd(end);
      break;
    case Chars:
      charChunk.setEnd(end);
      break;
    default:
      break;
  }
}
origin: org.glassfish.grizzly/grizzly-http

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: javaee/grizzly

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: javaee/grizzly

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: javaee/grizzly

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: javaee/grizzly

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: javaee/grizzly

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: javaee/grizzly

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
origin: javaee/grizzly

/**
 * Unescapes any double quotes in the given cookie value.
 *
 * @param bc The cookie value to modify
 */
public static void unescapeDoubleQuotes(BufferChunk bc) {
  if (bc == null || bc.getLength() == 0) {
    return;
  }
  int src = bc.getStart();
  int end = bc.getEnd();
  int dest = src;
  Buffer buffer = bc.getBuffer();
  while (src < end) {
    if (buffer.get(src) == '\\' && src < end && buffer.get(src + 1) == '"') {
      src++;
    }
    buffer.put(dest, buffer.get(src));
    dest++;
    src++;
  }
  bc.setEnd(dest);
}
org.glassfish.grizzly.http.utilBufferChunksetEnd

Popular methods of BufferChunk

  • getBuffer
  • getEnd
  • getStart
  • <init>
  • allocate
  • append
  • delete
  • equals
    Compares the message Buffer to the specified char array.
  • equalsIgnoreCase
    Compares the message Buffer to the specified char array ignoring case considerations.
  • equalsIgnoreCaseLowerCase
    Compares the buffer chunk to the specified byte array representing lower-case ASCII characters.
  • getLength
  • hash
  • getLength,
  • hash,
  • indexOf,
  • isNull,
  • notifyDirectUpdate,
  • recycle,
  • reset,
  • resetStringCache,
  • setBufferChunk

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • startActivity (Activity)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • CodeWhisperer alternatives
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