Tabnine Logo
Output.write
Code IndexAdd Tabnine to your IDE (free)

How to use
write
method
in
org.glassfish.grizzly.streams.Output

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

origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Override
public void writeBooleanArray(final boolean[] data) throws IOException {
  for(int i=0; i<data.length; i++) {
    output.write((byte) (data[i] ? 1 : 0));
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeBuffer(Buffer b) throws IOException {
  output.write(b);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeBuffer(Buffer b) throws IOException {
  output.write(b);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeBooleanArray(final boolean[] data) throws IOException {
  for(int i=0; i<data.length; i++) {
    output.write((byte) (data[i] ? 1 : 0));
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeBuffer(Buffer b) throws IOException {
  output.write(b);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeByte(final byte data) throws IOException {
  output.write(data);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeBooleanArray(final boolean[] data) throws IOException {
  for(int i=0; i<data.length; i++) {
    output.write((byte) (data[i] ? 1 : 0));
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeBuffer(Buffer b) throws IOException {
  output.write(b);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeByte(final byte data) throws IOException {
  output.write(data);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeBooleanArray(final boolean[] data) throws IOException {
  for(int i=0; i<data.length; i++) {
    output.write((byte) (data[i] ? 1 : 0));
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeByte(final byte data) throws IOException {
  output.write(data);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeBuffer(Buffer b) throws IOException {
  output.write(b);
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * {@inheritDoc}
 */
@Override
public void writeBuffer(Buffer b) throws IOException {
  output.write(b);
}
origin: org.glassfish.grizzly/grizzly-core

@Override
public void writeInt(final int data) throws IOException {
  if (isOutputBuffered) {
    output.ensureBufferCapacity(4);
    output.getBuffer().putInt(data);
  } else {
    output.write((byte) ((data >>> 24) & 0xFF));
    output.write((byte) ((data >>> 16) & 0xFF));
    output.write((byte) ((data >>> 8) & 0xFF));
    output.write((byte) ((data) & 0xFF));
  }
}
origin: org.mule.glassfish.grizzly/grizzly-framework

@Override
public void writeInt(final int data) throws IOException {
  if (isOutputBuffered) {
    output.ensureBufferCapacity(4);
    output.getBuffer().putInt(data);
  } else {
    output.write((byte) ((data >>> 24) & 0xFF));
    output.write((byte) ((data >>> 16) & 0xFF));
    output.write((byte) ((data >>> 8) & 0xFF));
    output.write((byte) ((data) & 0xFF));
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
public void writeInt(final int data) throws IOException {
  if (isOutputBuffered) {
    output.ensureBufferCapacity(4);
    output.getBuffer().putInt(data);
  } else {
    output.write((byte) ((data >>> 24) & 0xFF));
    output.write((byte) ((data >>> 16) & 0xFF));
    output.write((byte) ((data >>> 8) & 0xFF));
    output.write((byte) ((data) & 0xFF));
  }
}
origin: javaee/grizzly

@Override
public void writeInt(final int data) throws IOException {
  if (isOutputBuffered) {
    output.ensureBufferCapacity(4);
    output.getBuffer().putInt(data);
  } else {
    output.write((byte) ((data >>> 24) & 0xFF));
    output.write((byte) ((data >>> 16) & 0xFF));
    output.write((byte) ((data >>> 8) & 0xFF));
    output.write((byte) ((data) & 0xFF));
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeByteArray(byte[] data, int offset, int length) throws IOException {
  final Buffer buffer = Buffers.wrap(connection.getMemoryManager(),
      data, offset, length);
  output.write(buffer);
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void writeByteArray(byte[] data, int offset, int length) throws IOException {
  final Buffer buffer = Buffers.wrap(connection.getMemoryManager(),
      data, offset, length);
  output.write(buffer);
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * {@inheritDoc}
 */
@Override
public void writeByteArray(byte[] data, int offset, int length) throws IOException {
  final Buffer buffer = Buffers.wrap(connection.getMemoryManager(),
      data, offset, length);
  output.write(buffer);
}
org.glassfish.grizzly.streamsOutputwrite

Popular methods of Output

  • close
    Close the StreamWriter and make sure all data was flushed.
  • ensureBufferCapacity
  • flush
    Make sure that all data that has been written is flushed from the stream to its destination.
  • getBuffer
    Return the Input's Buffer.
  • isBuffered

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • String (java.lang)
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Option (scala)
  • Best IntelliJ 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