Tabnine Logo
ByteArrayDataOutputStream.writeByte
Code IndexAdd Tabnine to your IDE (free)

How to use
writeByte
method
in
org.jgroups.util.ByteArrayDataOutputStream

Best Java code snippets using org.jgroups.util.ByteArrayDataOutputStream.writeByte (Showing top 6 results out of 315)

origin: wildfly/wildfly

protected static Buffer streamableToBuffer(byte req_or_rsp, byte type, Streamable obj) throws Exception {
  int expected_size=obj instanceof SizeStreamable? ((SizeStreamable)obj).serializedSize() : 100;
  ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(expected_size);
  out.writeByte(req_or_rsp);
  out.writeByte(type);
  obj.writeTo(out);
  return new Buffer(out.buffer(), 0, out.position());
}
origin: wildfly/wildfly

dos.writeByte(flags);
msg.writeTo(dos);
Buffer buffer=dos.getBuffer();
origin: wildfly/wildfly

  protected Buffer writeMessage(final Message msg) throws Exception {
    dos.position(0);
    byte flags=0;
    dos.writeShort(Version.version); // write the version
    if(msg.getDest() == null)
      flags+=(byte)2;
    dos.writeByte(flags);
    msg.writeTo(dos);
    return new Buffer(dos.buffer(), 0, dos.position());
  }
}
origin: org.jboss.eap/wildfly-client-all

protected static Buffer streamableToBuffer(byte req_or_rsp, byte type, Streamable obj) throws Exception {
  int expected_size=obj instanceof SizeStreamable? ((SizeStreamable)obj).serializedSize() : 100;
  ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(expected_size);
  out.writeByte(req_or_rsp);
  out.writeByte(type);
  obj.writeTo(out);
  return new Buffer(out.buffer(), 0, out.position());
}
origin: org.jboss.eap/wildfly-client-all

dos.writeByte(flags);
msg.writeTo(dos);
Buffer buffer=dos.getBuffer();
origin: org.jboss.eap/wildfly-client-all

  protected Buffer writeMessage(final Message msg) throws Exception {
    dos.position(0);
    byte flags=0;
    dos.writeShort(Version.version); // write the version
    if(msg.getDest() == null)
      flags+=(byte)2;
    dos.writeByte(flags);
    msg.writeTo(dos);
    return new Buffer(dos.buffer(), 0, dos.position());
  }
}
org.jgroups.utilByteArrayDataOutputStreamwriteByte

Popular methods of ByteArrayDataOutputStream

  • <init>
  • buffer
  • checkBounds
  • ensureCapacity
    Grows the buffer; whether it grow linearly or exponentially depends on grow_exponentially
  • getBuffer
  • getByteBuffer
  • position
  • write
  • writeBoolean
  • writeChar
  • writeInt
  • writeLong
  • writeInt,
  • writeLong,
  • writeShort,
  • writeUTF

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Sublime Text 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