Tabnine Logo
DefaultDataBuffer.read
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-framework

@Override
public DefaultDataBuffer read(byte[] destination) {
  Assert.notNull(destination, "Byte array must not be null");
  read(destination, 0, destination.length);
  return this;
}
origin: spring-projects/spring-framework

  @Override
  public int read(byte[] bytes, int off, int len) throws IOException {
    int available = available();
    if (available > 0) {
      len = Math.min(len, available);
      DefaultDataBuffer.this.read(bytes, off, len);
      return len;
    }
    else {
      return -1;
    }
  }
}
origin: org.springframework/spring-core

@Override
public DefaultDataBuffer read(byte[] destination) {
  Assert.notNull(destination, "Byte array must not be null");
  read(destination, 0, destination.length);
  return this;
}
origin: spring-projects/spring-framework

@Override
public int read() {
  return available() > 0 ? DefaultDataBuffer.this.read() & 0xFF : -1;
}
origin: org.springframework/spring-core

@Override
public int read() {
  return available() > 0 ? DefaultDataBuffer.this.read() & 0xFF : -1;
}
origin: org.springframework/spring-core

  @Override
  public int read(byte[] bytes, int off, int len) throws IOException {
    int available = available();
    if (available > 0) {
      len = Math.min(len, available);
      DefaultDataBuffer.this.read(bytes, off, len);
      return len;
    }
    else {
      return -1;
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

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

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

@Override
public int read() {
  return available() > 0 ? DefaultDataBuffer.this.read() & 0xFF : -1;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core

  @Override
  public int read(byte[] bytes, int off, int len) throws IOException {
    int available = available();
    if (available > 0) {
      len = Math.min(len, available);
      DefaultDataBuffer.this.read(bytes, off, len);
      return len;
    }
    else {
      return -1;
    }
  }
}
origin: apache/servicemix-bundles

@Override
public int read() {
  return available() > 0 ? DefaultDataBuffer.this.read() & 0xFF : -1;
}
origin: apache/servicemix-bundles

  @Override
  public int read(byte[] bytes, int off, int len) throws IOException {
    int available = available();
    if (available > 0) {
      len = Math.min(len, available);
      DefaultDataBuffer.this.read(bytes, off, len);
      return len;
    }
    else {
      return -1;
    }
  }
}
org.springframework.core.io.bufferDefaultDataBufferread

Popular methods of DefaultDataBuffer

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

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JButton (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Github Copilot 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