congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DefaultDataBuffer.write
Code IndexAdd Tabnine to your IDE (free)

How to use
write
method
in
org.springframework.core.io.buffer.DefaultDataBuffer

Best Java code snippets using org.springframework.core.io.buffer.DefaultDataBuffer.write (Showing top 18 results out of 315)

origin: spring-projects/spring-framework

  @Override
  public void write(byte[] bytes, int off, int len) throws IOException {
    DefaultDataBuffer.this.write(bytes, off, len);
  }
}
origin: spring-projects/spring-framework

@Override
public void write(int b) throws IOException {
  DefaultDataBuffer.this.write((byte) b);
}
origin: spring-projects/spring-framework

@Override
public DefaultDataBuffer write(byte[] source) {
  Assert.notNull(source, "Byte array must not be null");
  write(source, 0, source.length);
  return this;
}
origin: org.springframework/spring-core

  @Override
  public void write(byte[] bytes, int off, int len) throws IOException {
    DefaultDataBuffer.this.write(bytes, off, len);
  }
}
origin: org.springframework/spring-core

@Override
public void write(int b) throws IOException {
  DefaultDataBuffer.this.write((byte) b);
}
origin: spring-projects/spring-framework

@Override
public DefaultDataBuffer write(DataBuffer... buffers) {
  if (!ObjectUtils.isEmpty(buffers)) {
    write(Arrays.stream(buffers).map(DataBuffer::asByteBuffer).toArray(ByteBuffer[]::new));
  }
  return this;
}
origin: org.springframework/spring-core

@Override
public DefaultDataBuffer write(byte[] source) {
  Assert.notNull(source, "Byte array must not be null");
  write(source, 0, source.length);
  return this;
}
origin: org.springframework/spring-core

@Override
public DefaultDataBuffer write(DataBuffer... buffers) {
  if (!ObjectUtils.isEmpty(buffers)) {
    write(Arrays.stream(buffers).map(DataBuffer::asByteBuffer).toArray(ByteBuffer[]::new));
  }
  return this;
}
origin: spring-projects/spring-framework

private static DataBuffer asDataBuffer(String text) {
  DefaultDataBuffer buffer = new DefaultDataBufferFactory().allocateBuffer();
  return buffer.write(text.getBytes(StandardCharsets.UTF_8));
}
origin: spring-projects/spring-restdocs

@Override
public Flux<DataBuffer> getBody() {
  DefaultDataBuffer buffer = new DefaultDataBufferFactory().allocateBuffer();
  buffer.write(this.result.getRequestBodyContent());
  return Flux.fromArray(new DataBuffer[] { buffer });
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

  @Override
  public void write(byte[] bytes, int off, int len) throws IOException {
    DefaultDataBuffer.this.write(bytes, off, len);
  }
}
origin: apache/servicemix-bundles

  @Override
  public void write(byte[] bytes, int off, int len) throws IOException {
    DefaultDataBuffer.this.write(bytes, off, len);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

@Override
public void write(int b) throws IOException {
  DefaultDataBuffer.this.write((byte) b);
}
origin: apache/servicemix-bundles

@Override
public void write(int b) throws IOException {
  DefaultDataBuffer.this.write((byte) b);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

@Override
public DefaultDataBuffer write(byte[] source) {
  Assert.notNull(source, "'source' must not be null");
  write(source, 0, source.length);
  return this;
}
origin: apache/servicemix-bundles

@Override
public DefaultDataBuffer write(byte[] source) {
  Assert.notNull(source, "Byte array must not be null");
  write(source, 0, source.length);
  return this;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

@Override
public DefaultDataBuffer write(DataBuffer... buffers) {
  if (!ObjectUtils.isEmpty(buffers)) {
    ByteBuffer[] byteBuffers =
        Arrays.stream(buffers).map(DataBuffer::asByteBuffer)
            .toArray(ByteBuffer[]::new);
    write(byteBuffers);
  }
  return this;
}
origin: apache/servicemix-bundles

@Override
public DefaultDataBuffer write(DataBuffer... buffers) {
  if (!ObjectUtils.isEmpty(buffers)) {
    write(Arrays.stream(buffers).map(DataBuffer::asByteBuffer).toArray(ByteBuffer[]::new));
  }
  return this;
}
org.springframework.core.io.bufferDefaultDataBufferwrite

Popular methods of DefaultDataBuffer

  • <init>
  • allocate
  • asByteBuffer
  • assertIndex
  • calculateCapacity
    Calculate the capacity of the buffer.
  • capacity
  • checkIndex
  • ensureCapacity
  • fromEmptyByteBuffer
  • fromFilledByteBuffer
  • read
  • readPosition
  • read,
  • readPosition,
  • readableByteCount,
  • setNativeBuffer,
  • writableByteCount,
  • writePosition,
  • getNativeBuffer

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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