Tabnine Logo
Input.isBuffered
Code IndexAdd Tabnine to your IDE (free)

How to use
isBuffered
method
in
org.glassfish.grizzly.streams.Input

Best Java code snippets using org.glassfish.grizzly.streams.Input.isBuffered (Showing top 20 results out of 315)

origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * {@inheritDoc}
 */
@Override
public boolean isSupportBufferWindow() {
  return input.isBuffered();
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
final public float readFloat() throws IOException {
  if (input.isBuffered()) {
    final Buffer buffer = input.getBuffer();
    if (buffer != null && buffer.remaining() >= 4) {
      final float result = buffer.getFloat();
      buffer.shrink();
      return result;
    }
  }
  return Float.intBitsToFloat(readInt());
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
final public double readDouble() throws IOException {
  if (input.isBuffered()) {
    final Buffer buffer = input.getBuffer();
    if (buffer != null && buffer.remaining() >= 8) {
      final double result = buffer.getDouble();
      buffer.shrink();
      return result;
    }
  }
  
  return Double.longBitsToDouble(readLong());
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Override
public short readShort() throws IOException {
  if (input.isBuffered()) {
    final Buffer buffer = input.getBuffer();
    if (buffer != null && buffer.remaining() >= 2) {
      final short result = buffer.getShort();
      buffer.shrink();
      return result;
    }
  }
  
  return (short) ((readByte() & 0xff) << 8 | readByte() & 0xff);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Override
public int readInt() throws IOException {
  if (input.isBuffered()) {
    final Buffer buffer = input.getBuffer();
    if (buffer != null && buffer.remaining() >= 4) {
      final int result = buffer.getInt();
      buffer.shrink();
      return result;
    }
  }
  
  return (readShort() & 0xffff) << 16 | readShort() & 0xffff;
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public char readChar()  throws IOException {
  if (input.isBuffered()) {
    final Buffer buffer = input.getBuffer();
    if (buffer != null && buffer.remaining() >= 2) {
      final char result = buffer.getChar();
      buffer.shrink();
      return result;
    }
  }
  return (char) ((readByte() & 0xff) << 8 | readByte() & 0xff);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public long readLong() throws IOException {
  if (input.isBuffered()) {
    final Buffer buffer = input.getBuffer();
    if (buffer != null && buffer.remaining() >= 8) {
      final long result = buffer.getLong();
      buffer.shrink();
      return result;
    }
  }
  
  return (readInt() & 0xffffffffL) << 32 | readInt() & 0xffffffffL;
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public int readInt() throws IOException {
  if (input.isBuffered()) {
    final Buffer buffer = input.getBuffer();
    if (buffer != null && buffer.remaining() >= 4) {
      final int result = buffer.getInt();
      buffer.shrink();
      return result;
    }
  }
  
  return (readShort() & 0xffff) << 16 | readShort() & 0xffff;
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public long readLong() throws IOException {
  if (input.isBuffered()) {
    final Buffer buffer = input.getBuffer();
    if (buffer != null && buffer.remaining() >= 8) {
      final long result = buffer.getLong();
      buffer.shrink();
      return result;
    }
  }
  
  return (readInt() & 0xffffffffL) << 32 | readInt() & 0xffffffffL;
}
org.glassfish.grizzly.streamsInputisBuffered

Popular methods of Input

  • close
  • getBuffer
    Return the Input's Buffer.
  • notifyCondition
  • read
  • size
  • skip
  • takeBuffer
    Takes the Input's Buffer. This Input should never try to access this Buffer.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JLabel (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top Vim 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