org.infinispan.server.core.transport.netty
Class NettyChannelBuffer

java.lang.Object
  extended by org.infinispan.server.core.transport.netty.NettyChannelBuffer
All Implemented Interfaces:
ChannelBuffer

public class NettyChannelBuffer
extends Object
implements ChannelBuffer

NettyChannelBuffer.

Since:
4.1
Author:
Galder ZamarreƱo

Constructor Summary
NettyChannelBuffer(org.jboss.netty.buffer.ChannelBuffer nettyBuffer)
           
 
Method Summary
 org.jboss.netty.buffer.ChannelBuffer 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NettyChannelBuffer

public NettyChannelBuffer(org.jboss.netty.buffer.ChannelBuffer nettyBuffer)
Method Detail

getUnderlyingChannelBuffer

public org.jboss.netty.buffer.ChannelBuffer getUnderlyingChannelBuffer()
Specified by:
getUnderlyingChannelBuffer in interface ChannelBuffer

readUnsignedInt

public int readUnsignedInt()
Specified by:
readUnsignedInt in interface ChannelBuffer

writeUnsignedInt

public void writeUnsignedInt(int i)
Specified by:
writeUnsignedInt in interface ChannelBuffer

readUnsignedLong

public long readUnsignedLong()
Specified by:
readUnsignedLong in interface ChannelBuffer

writeUnsignedLong

public void writeUnsignedLong(long l)
Specified by:
writeUnsignedLong in interface ChannelBuffer

readByte

public byte readByte()
Specified by:
readByte in interface ChannelBuffer

readBytes

public void readBytes(byte[] dst,
                      int dstIndex,
                      int length)
Specified by:
readBytes in interface ChannelBuffer

readBytes

public ChannelBuffer readBytes(int length)
Specified by:
readBytes in interface ChannelBuffer

readBytes

public void readBytes(byte[] dst)
Specified by:
readBytes in interface ChannelBuffer

readRangedBytes

public byte[] readRangedBytes()
Specified by:
readRangedBytes in interface ChannelBuffer

readString

public String readString()
Description copied from interface: ChannelBuffer
Reads length of String and then returns an UTF-8 formatted String of such length.

Specified by:
readString in interface ChannelBuffer

writeString

public void writeString(String msg)
Description copied from interface: ChannelBuffer
Writes the length of the String followed by the String itself. This methods expects String not to be null.

Specified by:
writeString in interface ChannelBuffer

readUnsignedByte

public short readUnsignedByte()
Specified by:
readUnsignedByte in interface ChannelBuffer

readerIndex

public int readerIndex()
Specified by:
readerIndex in interface ChannelBuffer

writeByte

public void writeByte(byte value)
Specified by:
writeByte in interface ChannelBuffer

writeBytes

public void writeBytes(byte[] src)
Specified by:
writeBytes in interface ChannelBuffer

writeRangedBytes

public void writeRangedBytes(byte[] src)
Description copied from interface: ChannelBuffer
Writes the length of the byte array and transfers the specified source array's data to this buffer

Specified by:
writeRangedBytes in interface ChannelBuffer

writerIndex

public int writerIndex()
Specified by:
writerIndex in interface ChannelBuffer

Google Analytics

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