Tabnine Logo
StringDecoder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.springframework.core.codec.StringDecoder
constructor

Best Java code snippets using org.springframework.core.codec.StringDecoder.<init> (Showing top 12 results out of 315)

origin: spring-projects/spring-framework

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 * @param delimiters delimiter strings to use to split the input stream
 * @param stripDelimiter whether to remove delimiters from the resulting
 * input strings
 */
public static StringDecoder textPlainOnly(List<String> delimiters, boolean stripDelimiter) {
  return new StringDecoder(delimiters, stripDelimiter, new MimeType("text", "plain", DEFAULT_CHARSET));
}
origin: spring-projects/spring-framework

/**
 * Create a {@code StringDecoder} that supports all MIME types.
 * @param delimiters delimiter strings to use to split the input stream
 * @param stripDelimiter whether to remove delimiters from the resulting
 * input strings
 */
public static StringDecoder allMimeTypes(List<String> delimiters, boolean stripDelimiter) {
  return new StringDecoder(delimiters, stripDelimiter,
      new MimeType("text", "plain", DEFAULT_CHARSET), MimeTypeUtils.ALL);
}
origin: org.springframework/spring-core

/**
 * Create a {@code StringDecoder} that supports all MIME types.
 * @param delimiters delimiter strings to use to split the input stream
 * @param stripDelimiter whether to remove delimiters from the resulting
 * input strings
 */
public static StringDecoder allMimeTypes(List<String> delimiters, boolean stripDelimiter) {
  return new StringDecoder(delimiters, stripDelimiter,
      new MimeType("text", "plain", DEFAULT_CHARSET), MimeTypeUtils.ALL);
}
origin: org.springframework/spring-core

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 * @param delimiters delimiter strings to use to split the input stream
 * @param stripDelimiter whether to remove delimiters from the resulting
 * input strings
 */
public static StringDecoder textPlainOnly(List<String> delimiters, boolean stripDelimiter) {
  return new StringDecoder(delimiters, stripDelimiter, new MimeType("text", "plain", DEFAULT_CHARSET));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 * @param delimiters delimiter strings to use to split the input stream
 * @param stripDelimiter whether to remove delimiters from the resulting
 * input strings.
 */
public static StringDecoder textPlainOnly(List<String> delimiters, boolean stripDelimiter) {
  return new StringDecoder(delimiters, stripDelimiter, new MimeType("text", "plain", DEFAULT_CHARSET));
}
origin: apache/servicemix-bundles

/**
 * Create a {@code StringDecoder} for {@code "text/plain"}.
 * @param delimiters delimiter strings to use to split the input stream
 * @param stripDelimiter whether to remove delimiters from the resulting
 * input strings
 */
public static StringDecoder textPlainOnly(List<String> delimiters, boolean stripDelimiter) {
  return new StringDecoder(delimiters, stripDelimiter, new MimeType("text", "plain", DEFAULT_CHARSET));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

/**
 * Create a {@code StringDecoder} that supports all MIME types.
 * @param delimiters delimiter strings to use to split the input stream
 * @param stripDelimiter whether to remove delimiters from the resulting
 * input strings.
 */
public static StringDecoder allMimeTypes(List<String> delimiters, boolean stripDelimiter) {
  return new StringDecoder(delimiters, stripDelimiter,
      new MimeType("text", "plain", DEFAULT_CHARSET), MimeTypeUtils.ALL);
}
origin: apache/servicemix-bundles

/**
 * Create a {@code StringDecoder} that supports all MIME types.
 * @param delimiters delimiter strings to use to split the input stream
 * @param stripDelimiter whether to remove delimiters from the resulting
 * input strings
 */
public static StringDecoder allMimeTypes(List<String> delimiters, boolean stripDelimiter) {
  return new StringDecoder(delimiters, stripDelimiter,
      new MimeType("text", "plain", DEFAULT_CHARSET), MimeTypeUtils.ALL);
}
origin: org.springframework/spring-web-reactive

public RequestMappingHandlerAdapter() {
  this.messageReaders.add(new DecoderHttpMessageReader<>(new ByteArrayDecoder()));
  this.messageReaders.add(new DecoderHttpMessageReader<>(new ByteBufferDecoder()));
  this.messageReaders.add(new DecoderHttpMessageReader<>(new StringDecoder()));
}
origin: org.springframework/spring-web-reactive

/**
 * Adds default converters that sub-classes can call from
 * {@link #configureMessageReaders(List)} for {@code byte[]},
 * {@code ByteBuffer}, {@code String}, {@code Resource}, JAXB2, and Jackson
 * (if present on the classpath).
 */
protected final void addDefaultHttpMessageReaders(List<HttpMessageReader<?>> readers) {
  readers.add(new DecoderHttpMessageReader<>(new ByteArrayDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new ByteBufferDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new StringDecoder()));
  readers.add(new DecoderHttpMessageReader<>(new ResourceDecoder()));
  if (jaxb2Present) {
    readers.add(new DecoderHttpMessageReader<>(new Jaxb2XmlDecoder()));
  }
  if (jackson2Present) {
    readers.add(new Jackson2ServerHttpMessageReader(
        new  DecoderHttpMessageReader<>(new Jackson2JsonDecoder())));
  }
}
origin: org.springframework/spring-web-reactive

public void defaultConfiguration() {
  messageReader(new DecoderHttpMessageReader<>(new ByteArrayDecoder()));
  messageReader(new DecoderHttpMessageReader<>(new ByteBufferDecoder()));
  if (jackson2Present) {
    messageReader(new ServerSentEventHttpMessageReader(Collections.singletonList(new Jackson2JsonDecoder())));
  }
  else {
    messageReader(new ServerSentEventHttpMessageReader(Collections.emptyList()));
  }
  messageReader(new DecoderHttpMessageReader<>(new StringDecoder(false)));
  messageWriter(new EncoderHttpMessageWriter<>(new ByteArrayEncoder()));
  messageWriter(new EncoderHttpMessageWriter<>(new ByteBufferEncoder()));
  messageWriter(new EncoderHttpMessageWriter<>(new CharSequenceEncoder()));
  messageWriter(new ResourceHttpMessageWriter());
  if (jaxb2Present) {
    messageReader(new DecoderHttpMessageReader<>(new Jaxb2XmlDecoder()));
    messageWriter(new EncoderHttpMessageWriter<>(new Jaxb2XmlEncoder()));
  }
  if (jackson2Present) {
    messageReader(new DecoderHttpMessageReader<>(new Jackson2JsonDecoder()));
    messageWriter(new EncoderHttpMessageWriter<>(new Jackson2JsonEncoder()));
  }
}
origin: org.springframework/spring-web-reactive

public void defaultConfiguration() {
  messageReader(new DecoderHttpMessageReader<>(new ByteArrayDecoder()));
  messageReader(new DecoderHttpMessageReader<>(new ByteBufferDecoder()));
  messageReader(new DecoderHttpMessageReader<>(new StringDecoder()));
  messageWriter(new EncoderHttpMessageWriter<>(new ByteArrayEncoder()));
  messageWriter(new EncoderHttpMessageWriter<>(new ByteBufferEncoder()));
  messageWriter(new EncoderHttpMessageWriter<>(new CharSequenceEncoder()));
  messageWriter(new ResourceHttpMessageWriter());
  if (jaxb2Present) {
    messageReader(new DecoderHttpMessageReader<>(new Jaxb2XmlDecoder()));
    messageWriter(new EncoderHttpMessageWriter<>(new Jaxb2XmlEncoder()));
  }
  if (jackson2Present) {
    messageReader(new DecoderHttpMessageReader<>(new Jackson2JsonDecoder()));
    Jackson2JsonEncoder jsonEncoder = new Jackson2JsonEncoder();
    messageWriter(new EncoderHttpMessageWriter<>(jsonEncoder));
    messageWriter(
        new ServerSentEventHttpMessageWriter(Collections.singletonList(jsonEncoder)));
  }
  else {
    messageWriter(new ServerSentEventHttpMessageWriter());
  }
}
org.springframework.core.codecStringDecoder<init>

Popular methods of StringDecoder

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JButton (javax.swing)
  • From CI to AI: The AI layer in your organization
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