org.infinispan.server.core.transport
Interface ChannelBuffer

All Known Implementing Classes:
NettyChannelBuffer

public interface ChannelBuffer

ChannelBuffer.

Since:
4.1
Author:
Galder ZamarreƱo

Method Summary
 Object getUnderlyingChannelBuffer()
           
 byte readByte()
           
 void readBytes(byte[] dst)
           
 void readBytes(byte[] dst, int dstIndex, int length)
           
 ChannelBuffer readBytes(int length)
           
 int readerIndex()
           
 byte[] readRangedBytes()
           
 String readString()
          Reads length of String and then returns an UTF-8 formatted String of such length.
 short readUnsignedByte()
           
 int readUnsignedInt()
           
 long readUnsignedLong()
           
 void writeByte(byte value)
           
 void writeBytes(byte[] src)
           
 void writeRangedBytes(byte[] src)
          Writes the length of the byte array and transfers the specified source array's data to this buffer
 int writerIndex()
           
 void writeString(String msg)
          Writes the length of the String followed by the String itself.
 void writeUnsignedInt(int i)
           
 void writeUnsignedLong(long l)
           
 

Method Detail

readByte

byte readByte()

readBytes

void readBytes(byte[] dst,
               int dstIndex,
               int length)

readUnsignedByte

short readUnsignedByte()

readUnsignedInt

int readUnsignedInt()

readUnsignedLong

long readUnsignedLong()

readBytes

ChannelBuffer readBytes(int length)

readerIndex

int readerIndex()

readBytes

void readBytes(byte[] dst)

readRangedBytes

byte[] readRangedBytes()

readString

String readString()
Reads length of String and then returns an UTF-8 formatted String of such length.


writeByte

void writeByte(byte value)

writeBytes

void writeBytes(byte[] src)

writeRangedBytes

void writeRangedBytes(byte[] src)
Writes the length of the byte array and transfers the specified source array's data to this buffer


writeUnsignedInt

void writeUnsignedInt(int i)

writeUnsignedLong

void writeUnsignedLong(long l)

writerIndex

int writerIndex()

writeString

void writeString(String msg)
Writes the length of the String followed by the String itself. This methods expects String not to be null.


getUnderlyingChannelBuffer

Object getUnderlyingChannelBuffer()

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.