Tabnine Logo
StringDecoder.isEndFrame
Code IndexAdd Tabnine to your IDE (free)

How to use
isEndFrame
method
in
org.springframework.core.codec.StringDecoder

Best Java code snippets using org.springframework.core.codec.StringDecoder.isEndFrame (Showing top 4 results out of 315)

origin: spring-projects/spring-framework

/**
 * Join the given list of buffers into a single buffer.
 */
private static DataBuffer joinUntilEndFrame(List<DataBuffer> dataBuffers) {
  if (!dataBuffers.isEmpty()) {
    int lastIdx = dataBuffers.size() - 1;
    if (isEndFrame(dataBuffers.get(lastIdx))) {
      dataBuffers.remove(lastIdx);
    }
  }
  return dataBuffers.get(0).factory().join(dataBuffers);
}
origin: org.springframework/spring-core

/**
 * Join the given list of buffers into a single buffer.
 */
private static DataBuffer joinUntilEndFrame(List<DataBuffer> dataBuffers) {
  if (!dataBuffers.isEmpty()) {
    int lastIdx = dataBuffers.size() - 1;
    if (isEndFrame(dataBuffers.get(lastIdx))) {
      dataBuffers.remove(lastIdx);
    }
  }
  return dataBuffers.get(0).factory().join(dataBuffers);
}
origin: apache/servicemix-bundles

/**
 * Join the given list of buffers into a single buffer.
 */
private static DataBuffer joinUntilEndFrame(List<DataBuffer> dataBuffers) {
  if (!dataBuffers.isEmpty()) {
    int lastIdx = dataBuffers.size() - 1;
    if (isEndFrame(dataBuffers.get(lastIdx))) {
      dataBuffers.remove(lastIdx);
    }
  }
  return dataBuffers.get(0).factory().join(dataBuffers);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

/**
 * Joins the given list of buffers into a single buffer, also removing
 * the (inserted) {@link #END_FRAME}.
 */
private static DataBuffer joinUntilEndFrame(List<DataBuffer> dataBuffers) {
  if (!dataBuffers.isEmpty()) {
    int lastIdx = dataBuffers.size() - 1;
    if (isEndFrame(dataBuffers.get(lastIdx))) {
      dataBuffers.remove(lastIdx);
    }
  }
  return dataBuffers.get(0).factory().join(dataBuffers);
}
org.springframework.core.codecStringDecoderisEndFrame

Javadoc

Check whether the given buffer is #END_FRAME.

Popular methods of StringDecoder

  • allMimeTypes
    Create a StringDecoder that supports all MIME types.
  • textPlainOnly
    Create a StringDecoder for "text/plain".
  • <init>
  • decode
  • decodeToMono
  • getCharset
  • getDelimiterBytes
  • indexOf
    Find the given delimiter in the given data buffer.
  • splitOnDelimiter
    Split the given data buffer on delimiter boundaries. The returned Flux contains an #END_FRAME buffer
  • canDecode

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFrame (javax.swing)
  • Top PhpStorm 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