Package io.undertow.vertx
Class VertxBufferImpl
- java.lang.Object
-
- io.undertow.vertx.VertxBufferImpl
-
- All Implemented Interfaces:
io.vertx.core.buffer.Buffer,io.vertx.core.shareddata.impl.ClusterSerializable,io.vertx.core.shareddata.Shareable
public class VertxBufferImpl extends Object implements io.vertx.core.buffer.Buffer
-
-
Constructor Summary
Constructors Constructor Description VertxBufferImpl(io.netty.buffer.ByteBuf buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.buffer.BufferappendBuffer(io.vertx.core.buffer.Buffer buff)io.vertx.core.buffer.BufferappendBuffer(io.vertx.core.buffer.Buffer buff, int offset, int len)io.vertx.core.buffer.BufferappendByte(byte b)io.vertx.core.buffer.BufferappendBytes(byte[] bytes)io.vertx.core.buffer.BufferappendBytes(byte[] bytes, int offset, int len)io.vertx.core.buffer.BufferappendDouble(double d)io.vertx.core.buffer.BufferappendFloat(float f)io.vertx.core.buffer.BufferappendInt(int i)io.vertx.core.buffer.BufferappendIntLE(int i)io.vertx.core.buffer.BufferappendLong(long l)io.vertx.core.buffer.BufferappendLongLE(long l)io.vertx.core.buffer.BufferappendMedium(int i)io.vertx.core.buffer.BufferappendMediumLE(int i)io.vertx.core.buffer.BufferappendShort(short s)io.vertx.core.buffer.BufferappendShortLE(short s)io.vertx.core.buffer.BufferappendString(String str)io.vertx.core.buffer.BufferappendString(String str, String enc)io.vertx.core.buffer.BufferappendUnsignedByte(short b)io.vertx.core.buffer.BufferappendUnsignedInt(long i)io.vertx.core.buffer.BufferappendUnsignedIntLE(long i)io.vertx.core.buffer.BufferappendUnsignedShort(int s)io.vertx.core.buffer.BufferappendUnsignedShortLE(int s)io.vertx.core.buffer.Buffercopy()booleanequals(Object o)io.vertx.core.buffer.BuffergetBuffer(int start, int end)bytegetByte(int pos)io.netty.buffer.ByteBufgetByteBuf()byte[]getBytes()io.vertx.core.buffer.BuffergetBytes(byte[] dst)io.vertx.core.buffer.BuffergetBytes(byte[] dst, int dstIndex)byte[]getBytes(int start, int end)io.vertx.core.buffer.BuffergetBytes(int start, int end, byte[] dst)io.vertx.core.buffer.BuffergetBytes(int start, int end, byte[] dst, int dstIndex)doublegetDouble(int pos)floatgetFloat(int pos)intgetInt(int pos)intgetIntLE(int pos)longgetLong(int pos)longgetLongLE(int pos)intgetMedium(int pos)intgetMediumLE(int pos)shortgetShort(int pos)shortgetShortLE(int pos)StringgetString(int start, int end)StringgetString(int start, int end, String enc)shortgetUnsignedByte(int pos)longgetUnsignedInt(int pos)longgetUnsignedIntLE(int pos)intgetUnsignedMedium(int pos)intgetUnsignedMediumLE(int pos)intgetUnsignedShort(int pos)intgetUnsignedShortLE(int pos)inthashCode()intlength()intreadFromBuffer(int pos, io.vertx.core.buffer.Buffer buffer)io.vertx.core.buffer.BuffersetBuffer(int pos, io.vertx.core.buffer.Buffer b)io.vertx.core.buffer.BuffersetBuffer(int pos, io.vertx.core.buffer.Buffer b, int offset, int len)io.vertx.core.buffer.BuffersetByte(int pos, byte b)io.vertx.core.buffer.BuffersetBytes(int pos, byte[] b)io.vertx.core.buffer.BuffersetBytes(int pos, byte[] b, int offset, int len)VertxBufferImplsetBytes(int pos, ByteBuffer b)io.vertx.core.buffer.BuffersetDouble(int pos, double d)io.vertx.core.buffer.BuffersetFloat(int pos, float f)io.vertx.core.buffer.BuffersetInt(int pos, int i)io.vertx.core.buffer.BuffersetIntLE(int pos, int i)io.vertx.core.buffer.BuffersetLong(int pos, long l)io.vertx.core.buffer.BuffersetLongLE(int pos, long l)io.vertx.core.buffer.BuffersetMedium(int pos, int i)io.vertx.core.buffer.BuffersetMediumLE(int pos, int i)io.vertx.core.buffer.BuffersetShort(int pos, short s)io.vertx.core.buffer.BuffersetShortLE(int pos, short s)io.vertx.core.buffer.BuffersetString(int pos, String str)io.vertx.core.buffer.BuffersetString(int pos, String str, String enc)io.vertx.core.buffer.BuffersetUnsignedByte(int pos, short b)io.vertx.core.buffer.BuffersetUnsignedInt(int pos, long i)io.vertx.core.buffer.BuffersetUnsignedIntLE(int pos, long i)io.vertx.core.buffer.BuffersetUnsignedShort(int pos, int s)io.vertx.core.buffer.BuffersetUnsignedShortLE(int pos, int s)io.vertx.core.buffer.Bufferslice()io.vertx.core.buffer.Bufferslice(int start, int end)io.vertx.core.json.JsonArraytoJsonArray()io.vertx.core.json.JsonObjecttoJsonObject()StringtoString()StringtoString(String enc)StringtoString(Charset enc)voidwriteToBuffer(io.vertx.core.buffer.Buffer buff)
-
-
-
Method Detail
-
toString
public String toString()
-
toString
public String toString(String enc)
- Specified by:
toStringin interfaceio.vertx.core.buffer.Buffer
-
toString
public String toString(Charset enc)
- Specified by:
toStringin interfaceio.vertx.core.buffer.Buffer
-
toJsonObject
public io.vertx.core.json.JsonObject toJsonObject()
- Specified by:
toJsonObjectin interfaceio.vertx.core.buffer.Buffer
-
toJsonArray
public io.vertx.core.json.JsonArray toJsonArray()
- Specified by:
toJsonArrayin interfaceio.vertx.core.buffer.Buffer
-
getByte
public byte getByte(int pos)
- Specified by:
getBytein interfaceio.vertx.core.buffer.Buffer
-
getUnsignedByte
public short getUnsignedByte(int pos)
- Specified by:
getUnsignedBytein interfaceio.vertx.core.buffer.Buffer
-
getInt
public int getInt(int pos)
- Specified by:
getIntin interfaceio.vertx.core.buffer.Buffer
-
getIntLE
public int getIntLE(int pos)
- Specified by:
getIntLEin interfaceio.vertx.core.buffer.Buffer
-
getUnsignedInt
public long getUnsignedInt(int pos)
- Specified by:
getUnsignedIntin interfaceio.vertx.core.buffer.Buffer
-
getUnsignedIntLE
public long getUnsignedIntLE(int pos)
- Specified by:
getUnsignedIntLEin interfaceio.vertx.core.buffer.Buffer
-
getLong
public long getLong(int pos)
- Specified by:
getLongin interfaceio.vertx.core.buffer.Buffer
-
getLongLE
public long getLongLE(int pos)
- Specified by:
getLongLEin interfaceio.vertx.core.buffer.Buffer
-
getDouble
public double getDouble(int pos)
- Specified by:
getDoublein interfaceio.vertx.core.buffer.Buffer
-
getFloat
public float getFloat(int pos)
- Specified by:
getFloatin interfaceio.vertx.core.buffer.Buffer
-
getShort
public short getShort(int pos)
- Specified by:
getShortin interfaceio.vertx.core.buffer.Buffer
-
getShortLE
public short getShortLE(int pos)
- Specified by:
getShortLEin interfaceio.vertx.core.buffer.Buffer
-
getUnsignedShort
public int getUnsignedShort(int pos)
- Specified by:
getUnsignedShortin interfaceio.vertx.core.buffer.Buffer
-
getUnsignedShortLE
public int getUnsignedShortLE(int pos)
- Specified by:
getUnsignedShortLEin interfaceio.vertx.core.buffer.Buffer
-
getMedium
public int getMedium(int pos)
- Specified by:
getMediumin interfaceio.vertx.core.buffer.Buffer
-
getMediumLE
public int getMediumLE(int pos)
- Specified by:
getMediumLEin interfaceio.vertx.core.buffer.Buffer
-
getUnsignedMedium
public int getUnsignedMedium(int pos)
- Specified by:
getUnsignedMediumin interfaceio.vertx.core.buffer.Buffer
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int pos)
- Specified by:
getUnsignedMediumLEin interfaceio.vertx.core.buffer.Buffer
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin interfaceio.vertx.core.buffer.Buffer
-
getBytes
public byte[] getBytes(int start, int end)- Specified by:
getBytesin interfaceio.vertx.core.buffer.Buffer
-
getBytes
public io.vertx.core.buffer.Buffer getBytes(byte[] dst)
- Specified by:
getBytesin interfaceio.vertx.core.buffer.Buffer
-
getBytes
public io.vertx.core.buffer.Buffer getBytes(byte[] dst, int dstIndex)- Specified by:
getBytesin interfaceio.vertx.core.buffer.Buffer
-
getBytes
public io.vertx.core.buffer.Buffer getBytes(int start, int end, byte[] dst)- Specified by:
getBytesin interfaceio.vertx.core.buffer.Buffer
-
getBytes
public io.vertx.core.buffer.Buffer getBytes(int start, int end, byte[] dst, int dstIndex)- Specified by:
getBytesin interfaceio.vertx.core.buffer.Buffer
-
getBuffer
public io.vertx.core.buffer.Buffer getBuffer(int start, int end)- Specified by:
getBufferin interfaceio.vertx.core.buffer.Buffer
-
getString
public String getString(int start, int end, String enc)
- Specified by:
getStringin interfaceio.vertx.core.buffer.Buffer
-
getString
public String getString(int start, int end)
- Specified by:
getStringin interfaceio.vertx.core.buffer.Buffer
-
appendBuffer
public io.vertx.core.buffer.Buffer appendBuffer(io.vertx.core.buffer.Buffer buff)
- Specified by:
appendBufferin interfaceio.vertx.core.buffer.Buffer
-
appendBuffer
public io.vertx.core.buffer.Buffer appendBuffer(io.vertx.core.buffer.Buffer buff, int offset, int len)- Specified by:
appendBufferin interfaceio.vertx.core.buffer.Buffer
-
appendBytes
public io.vertx.core.buffer.Buffer appendBytes(byte[] bytes)
- Specified by:
appendBytesin interfaceio.vertx.core.buffer.Buffer
-
appendBytes
public io.vertx.core.buffer.Buffer appendBytes(byte[] bytes, int offset, int len)- Specified by:
appendBytesin interfaceio.vertx.core.buffer.Buffer
-
appendByte
public io.vertx.core.buffer.Buffer appendByte(byte b)
- Specified by:
appendBytein interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedByte
public io.vertx.core.buffer.Buffer appendUnsignedByte(short b)
- Specified by:
appendUnsignedBytein interfaceio.vertx.core.buffer.Buffer
-
appendInt
public io.vertx.core.buffer.Buffer appendInt(int i)
- Specified by:
appendIntin interfaceio.vertx.core.buffer.Buffer
-
appendIntLE
public io.vertx.core.buffer.Buffer appendIntLE(int i)
- Specified by:
appendIntLEin interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedInt
public io.vertx.core.buffer.Buffer appendUnsignedInt(long i)
- Specified by:
appendUnsignedIntin interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedIntLE
public io.vertx.core.buffer.Buffer appendUnsignedIntLE(long i)
- Specified by:
appendUnsignedIntLEin interfaceio.vertx.core.buffer.Buffer
-
appendMedium
public io.vertx.core.buffer.Buffer appendMedium(int i)
- Specified by:
appendMediumin interfaceio.vertx.core.buffer.Buffer
-
appendMediumLE
public io.vertx.core.buffer.Buffer appendMediumLE(int i)
- Specified by:
appendMediumLEin interfaceio.vertx.core.buffer.Buffer
-
appendLong
public io.vertx.core.buffer.Buffer appendLong(long l)
- Specified by:
appendLongin interfaceio.vertx.core.buffer.Buffer
-
appendLongLE
public io.vertx.core.buffer.Buffer appendLongLE(long l)
- Specified by:
appendLongLEin interfaceio.vertx.core.buffer.Buffer
-
appendShort
public io.vertx.core.buffer.Buffer appendShort(short s)
- Specified by:
appendShortin interfaceio.vertx.core.buffer.Buffer
-
appendShortLE
public io.vertx.core.buffer.Buffer appendShortLE(short s)
- Specified by:
appendShortLEin interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedShort
public io.vertx.core.buffer.Buffer appendUnsignedShort(int s)
- Specified by:
appendUnsignedShortin interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedShortLE
public io.vertx.core.buffer.Buffer appendUnsignedShortLE(int s)
- Specified by:
appendUnsignedShortLEin interfaceio.vertx.core.buffer.Buffer
-
appendFloat
public io.vertx.core.buffer.Buffer appendFloat(float f)
- Specified by:
appendFloatin interfaceio.vertx.core.buffer.Buffer
-
appendDouble
public io.vertx.core.buffer.Buffer appendDouble(double d)
- Specified by:
appendDoublein interfaceio.vertx.core.buffer.Buffer
-
appendString
public io.vertx.core.buffer.Buffer appendString(String str, String enc)
- Specified by:
appendStringin interfaceio.vertx.core.buffer.Buffer
-
appendString
public io.vertx.core.buffer.Buffer appendString(String str)
- Specified by:
appendStringin interfaceio.vertx.core.buffer.Buffer
-
setByte
public io.vertx.core.buffer.Buffer setByte(int pos, byte b)- Specified by:
setBytein interfaceio.vertx.core.buffer.Buffer
-
setUnsignedByte
public io.vertx.core.buffer.Buffer setUnsignedByte(int pos, short b)- Specified by:
setUnsignedBytein interfaceio.vertx.core.buffer.Buffer
-
setInt
public io.vertx.core.buffer.Buffer setInt(int pos, int i)- Specified by:
setIntin interfaceio.vertx.core.buffer.Buffer
-
setIntLE
public io.vertx.core.buffer.Buffer setIntLE(int pos, int i)- Specified by:
setIntLEin interfaceio.vertx.core.buffer.Buffer
-
setUnsignedInt
public io.vertx.core.buffer.Buffer setUnsignedInt(int pos, long i)- Specified by:
setUnsignedIntin interfaceio.vertx.core.buffer.Buffer
-
setUnsignedIntLE
public io.vertx.core.buffer.Buffer setUnsignedIntLE(int pos, long i)- Specified by:
setUnsignedIntLEin interfaceio.vertx.core.buffer.Buffer
-
setMedium
public io.vertx.core.buffer.Buffer setMedium(int pos, int i)- Specified by:
setMediumin interfaceio.vertx.core.buffer.Buffer
-
setMediumLE
public io.vertx.core.buffer.Buffer setMediumLE(int pos, int i)- Specified by:
setMediumLEin interfaceio.vertx.core.buffer.Buffer
-
setLong
public io.vertx.core.buffer.Buffer setLong(int pos, long l)- Specified by:
setLongin interfaceio.vertx.core.buffer.Buffer
-
setLongLE
public io.vertx.core.buffer.Buffer setLongLE(int pos, long l)- Specified by:
setLongLEin interfaceio.vertx.core.buffer.Buffer
-
setDouble
public io.vertx.core.buffer.Buffer setDouble(int pos, double d)- Specified by:
setDoublein interfaceio.vertx.core.buffer.Buffer
-
setFloat
public io.vertx.core.buffer.Buffer setFloat(int pos, float f)- Specified by:
setFloatin interfaceio.vertx.core.buffer.Buffer
-
setShort
public io.vertx.core.buffer.Buffer setShort(int pos, short s)- Specified by:
setShortin interfaceio.vertx.core.buffer.Buffer
-
setShortLE
public io.vertx.core.buffer.Buffer setShortLE(int pos, short s)- Specified by:
setShortLEin interfaceio.vertx.core.buffer.Buffer
-
setUnsignedShort
public io.vertx.core.buffer.Buffer setUnsignedShort(int pos, int s)- Specified by:
setUnsignedShortin interfaceio.vertx.core.buffer.Buffer
-
setUnsignedShortLE
public io.vertx.core.buffer.Buffer setUnsignedShortLE(int pos, int s)- Specified by:
setUnsignedShortLEin interfaceio.vertx.core.buffer.Buffer
-
setBuffer
public io.vertx.core.buffer.Buffer setBuffer(int pos, io.vertx.core.buffer.Buffer b)- Specified by:
setBufferin interfaceio.vertx.core.buffer.Buffer
-
setBuffer
public io.vertx.core.buffer.Buffer setBuffer(int pos, io.vertx.core.buffer.Buffer b, int offset, int len)- Specified by:
setBufferin interfaceio.vertx.core.buffer.Buffer
-
setBytes
public VertxBufferImpl setBytes(int pos, ByteBuffer b)
- Specified by:
setBytesin interfaceio.vertx.core.buffer.Buffer
-
setBytes
public io.vertx.core.buffer.Buffer setBytes(int pos, byte[] b)- Specified by:
setBytesin interfaceio.vertx.core.buffer.Buffer
-
setBytes
public io.vertx.core.buffer.Buffer setBytes(int pos, byte[] b, int offset, int len)- Specified by:
setBytesin interfaceio.vertx.core.buffer.Buffer
-
setString
public io.vertx.core.buffer.Buffer setString(int pos, String str)- Specified by:
setStringin interfaceio.vertx.core.buffer.Buffer
-
setString
public io.vertx.core.buffer.Buffer setString(int pos, String str, String enc)- Specified by:
setStringin interfaceio.vertx.core.buffer.Buffer
-
length
public int length()
- Specified by:
lengthin interfaceio.vertx.core.buffer.Buffer
-
copy
public io.vertx.core.buffer.Buffer copy()
- Specified by:
copyin interfaceio.vertx.core.buffer.Buffer- Specified by:
copyin interfaceio.vertx.core.shareddata.Shareable
-
slice
public io.vertx.core.buffer.Buffer slice()
- Specified by:
slicein interfaceio.vertx.core.buffer.Buffer
-
slice
public io.vertx.core.buffer.Buffer slice(int start, int end)- Specified by:
slicein interfaceio.vertx.core.buffer.Buffer
-
getByteBuf
public io.netty.buffer.ByteBuf getByteBuf()
- Specified by:
getByteBufin interfaceio.vertx.core.buffer.Buffer
-
writeToBuffer
public void writeToBuffer(io.vertx.core.buffer.Buffer buff)
- Specified by:
writeToBufferin interfaceio.vertx.core.shareddata.impl.ClusterSerializable
-
readFromBuffer
public int readFromBuffer(int pos, io.vertx.core.buffer.Buffer buffer)- Specified by:
readFromBufferin interfaceio.vertx.core.shareddata.impl.ClusterSerializable
-
-