类的使用
org.redkale.util.ByteArray
-
使用ByteArray的程序包 程序包 说明 org.redkale.convert 提供数据的序列化和反解析功能org.redkale.convert.json 提供JSON的序列化和反解析功能org.redkale.convert.pb org.redkale.net.client 客户端网络包org.redkale.net.http HTTP协议包,提供HTTP协议服务器org.redkale.net.sncp SNCP协议包,提供SNCP协议服务器org.redkale.util Redkale工具包 -
-
org.redkale.convert中ByteArray的使用
参数类型为ByteArray的org.redkale.convert中的方法 修饰符和类型 方法 说明 voidConvert. convertToBytes(ByteArray array, Object value)abstract voidConvert. convertToBytes(ByteArray array, Type type, Object value) -
org.redkale.convert.json中ByteArray的使用
返回ByteArray的org.redkale.convert.json中的方法 修饰符和类型 方法 说明 ByteArrayJsonByteBufferWriter. toByteArray()参数类型为ByteArray的org.redkale.convert.json中的方法 修饰符和类型 方法 说明 voidJsonConvert. convertToBytes(ByteArray array, Type type, Object value)voidJsonBytesWriter. directTo(ByteArray array)将本对象的内容引用复制给array参数类型为ByteArray的org.redkale.convert.json中的构造器 构造器 说明 JsonBytesWriter(int features, ByteArray array)JsonBytesWriter(ByteArray array) -
org.redkale.convert.pb中ByteArray的使用
返回ByteArray的org.redkale.convert.pb中的方法 修饰符和类型 方法 说明 ByteArrayProtobufByteBufferWriter. toByteArray()ByteArrayProtobufBytesWriter. toByteArray()abstract ByteArrayProtobufWriter. toByteArray()参数类型为ByteArray的org.redkale.convert.pb中的方法 修饰符和类型 方法 说明 voidProtobufConvert. convertToBytes(ByteArray array, Type type, Object value)voidProtobufBytesWriter. directTo(ByteArray array)将本对象的内容引用复制给array -
org.redkale.net.client中ByteArray的使用
声明为ByteArray的org.redkale.net.client中的字段 修饰符和类型 字段 说明 protected ByteArrayClientConnection. writeArray参数类型为ByteArray的org.redkale.net.client中的方法 修饰符和类型 方法 说明 abstract voidClientCodec. decodeMessages(ByteBuffer buffer, ByteArray array)abstract voidClientRequest. writeTo(ClientConnection conn, ByteArray array) -
org.redkale.net.http中ByteArray的使用
声明为ByteArray的org.redkale.net.http中的字段 修饰符和类型 字段 说明 protected ByteArrayHttpResourceServlet.FileEntry. contentprotected ByteArrayWebSocketReadHandler. currSeriesMergeMessageBytesprotected ByteArrayWebSocketReadHandler. halfFrameBytesprotected ByteArrayWebSocketWriteHandler. writeArray类型参数类型为ByteArray的org.redkale.net.http中的字段 修饰符和类型 字段 说明 protected ObjectPool<ByteArray>WebSocketReadHandler. byteArrayPoolprotected ObjectPool<ByteArray>WebSocketWriteHandler. byteArrayPool返回ByteArray的org.redkale.net.http中的方法 修饰符和类型 方法 说明 protected ByteArrayHttpRequest. array()protected ByteArrayHttpRequest. getDirectBody()直接获取body对象返回变量类型为ByteArray的类型的org.redkale.net.http中的方法 修饰符和类型 方法 说明 protected BiFunction<HttpResponse,ByteArray,ByteArray>HttpResponse. getSendHandler()获取输出RetResult时的拦截器protected BiFunction<HttpResponse,ByteArray,ByteArray>HttpResponse. getSendHandler()获取输出RetResult时的拦截器参数类型为ByteArray的org.redkale.net.http中的方法 修饰符和类型 方法 说明 protected voidHttpResponse. finishFile(File file, ByteArray fileBody)将指定文件句柄或文件内容按响应结果输出,若fileBody不为null则只输出fileBody内容protected voidHttpResponse. finishFile(String fileName, File file, ByteArray fileBody)将指定文件句柄或文件内容按指定文件名输出,若fileBody不为null则只输出fileBody内容 file 与 fileBody 不能同时为空 file 与 fileName 也不能同时为空protected static StringHttpRequest. toDecodeString(ByteArray bytes, int offset, int len, Charset charset)voidWebSocketPacket. writeEncode(ByteArray array)protected voidWebSocketWriteHandler. writeEncode(ByteArray array, WebSocketPacket packet)voidWebRequest. writeTo(ClientConnection conn, ByteArray array)类型变量类型为ByteArray的org.redkale.net.http中的方法参数 修饰符和类型 方法 说明 voidHttpResponse. sendHandler(BiFunction<HttpResponse,ByteArray,ByteArray> sendHandler)设置输出结果时的拦截器voidHttpResponse. sendHandler(BiFunction<HttpResponse,ByteArray,ByteArray> sendHandler)设置输出结果时的拦截器参数类型为ByteArray的org.redkale.net.http中的构造器 构造器 说明 FileEntry(HttpResourceServlet servlet, String fileName, ByteArray content)HttpRequest(HttpContext context, ByteArray headerBytes, ByteArray bodyBytes)类型变量类型为ByteArray的org.redkale.net.http中的构造器参数 构造器 说明 WebSocketReadHandler(HttpContext context, WebSocket webSocket, ObjectPool<ByteArray> byteArrayPool, BiConsumer<WebSocket,Object> messageConsumer)WebSocketWriteHandler(HttpContext context, WebSocket webSocket, ObjectPool<ByteArray> byteArrayPool) -
org.redkale.net.sncp中ByteArray的使用
返回ByteArray的org.redkale.net.sncp中的方法 修饰符和类型 方法 说明 ByteArraySncpRequest. getTempByteArray()protected ByteArraySncpClientCodec. pollArray()ByteArraySncpHeader. writeTo(ByteArray array, SncpClientRequest clientRequest, byte keepAlive, int bodyLength, int retcode)ByteArraySncpHeader. writeTo(ByteArray array, SncpResponse response, byte keepAlive, int bodyLength, int retcode)参数类型为ByteArray的org.redkale.net.sncp中的方法 修饰符和类型 方法 说明 voidSncpClientCodec. decodeMessages(ByteBuffer realBuf, ByteArray array)static SncpHeaderSncpHeader. read(ByteArray array, int headerSize)protected booleanSncpClientResult. readHeader(ByteArray array, int headerSize)protected voidSncpResponse. writeHeader(ByteArray array, int bodyLength, int retcode)voidSncpClientRequest. writeTo(ClientConnection conn, ByteArray array)ByteArraySncpHeader. writeTo(ByteArray array, SncpClientRequest clientRequest, byte keepAlive, int bodyLength, int retcode)ByteArraySncpHeader. writeTo(ByteArray array, SncpResponse response, byte keepAlive, int bodyLength, int retcode) -
org.redkale.util中ByteArray的使用
返回ByteArray的org.redkale.util中的方法 修饰符和类型 方法 说明 ByteArrayByteArray. clear()清空数据,将count置为0,并不清掉byte[]的内容ByteArrayByteArray. position(int pos)设置count的新位置ByteArrayByteArray. put(byte value)写入一个byte值ByteArrayByteArray. put(byte... values)写入一组byte值ByteArrayByteArray. put(byte[] values, int offset, int length)写入一组byte值ByteArrayByteArray. put(byte value1, byte value2)写入两个byte值ByteArrayByteArray. put(byte value1, byte value2, byte value3)写入三个byte值ByteArrayByteArray. put(int offset, byte... values)指定位置写入一组byte值, content.length 必须不能小于offset+values.lengthByteArrayByteArray. put(int poffset, byte[] values, int offset, int length)写入一组byte值, content.length 必须不能小于poffset+lengthByteArrayByteArray. put(ByteBuffer buffer, int length)写入ByteBuffer指定长度的数据ByteArrayByteArray. put(ByteArray array, int offset, int length)写入ByteArray中的一部分ByteArrayByteArray. put(ByteTuple tuple)写入一组byte值ByteArrayByteArray. putByte(char value)ByteArrayByteArray. putByte(int value)ByteArrayByteArray. putByte(int offset, byte value)写入一个byte值, content.length 必须不能小于offset+1ByteArrayByteArray. putByte(int offset, int value)写入一个byte值, content.length 必须不能小于offset+1ByteArrayByteArray. putByte(short value)ByteArrayByteArray. putChar(char value)写入一个char值ByteArrayByteArray. putChar(int offset, char value)写入一个char值, content.length 必须不能小于offset+2ByteArrayByteArray. putDouble(double value)写入一个double值ByteArrayByteArray. putDouble(int offset, double value)指定位置写入一个double值, content.length 必须不能小于offset+8ByteArrayByteArray. putFloat(float value)写入一个float值ByteArrayByteArray. putFloat(int offset, float value)指定位置写入一个float值, content.length 必须不能小于offset+4ByteArrayByteArray. putInt(int value)写入一个int值ByteArrayByteArray. putInt(int offset, int value)指定位置写入一个int值, content.length 必须不能小于offset+4ByteArrayByteArray. putLong(int offset, long value)指定位置写入一个long值, content.length 必须不能小于offset+8ByteArrayByteArray. putLong(long value)写入一个long值ByteArrayByteArray. putMedium(int value)写入一个3字节的int值ByteArrayByteArray. putMedium(int offset, int value)指定位置写入一个3字节的int值, content.length 必须不能小于offset+3ByteArrayByteArray. putPlaceholder(int length)ByteArrayByteArray. putShort(char value)写入一个short值ByteArrayByteArray. putShort(int value)写入一个short值ByteArrayByteArray. putShort(int offset, short value)写入一个short值, content.length 必须不能小于offset+2ByteArrayByteArray. putShort(short value)写入一个short值ByteArrayByteArray. putUint128(int offset, Uint128 value)指定位置写入一个Uint128值, content.length 必须不能小于offset+16ByteArrayByteArray. putUint128(Uint128 value)写入一个Uint128值ByteArrayByteArray. putUnsignedInt(int offset, long value)指定位置写入一个 无符号int值, content.length 必须不能小于offset+4ByteArrayByteArray. putUnsignedInt(long value)写入一个int值ByteArrayByteArray. putUnsignedMedium(int value)写入一个3字节的int值ByteArrayByteArray. putUnsignedMedium(int offset, int value)指定位置写入一个3字节的int值, content.length 必须不能小于offset+3ByteArrayByteArray. putUnsignedShort(int value)写入一个short值ByteArrayByteArray. putUnsignedShort(int offset, int value)写入一个无符号short值, content.length 必须不能小于offset+2ByteArrayByteArray. removeLastByte()移除最后一个字节参数类型为ByteArray的org.redkale.util中的方法 修饰符和类型 方法 说明 booleanByteArray. deepEquals(ByteArray array)比较内容是否相同voidByteArray. directFrom(ByteArray array)将array的内容引用给本对象voidByteArray. directTo(ByteArray array)将本对象的内容引用复制给arraystatic booleanUtility. isEmpty(ByteArray array)是否为空static booleanUtility. isNotEmpty(ByteArray array)是否不为空ByteArrayByteArray. put(ByteArray array, int offset, int length)写入ByteArray中的一部分protected voidXmlReader. readCDSect(AnyValueWriter root, ByteArray array)protected voidXmlReader. readDocdecl(AnyValueWriter root, ByteArray array)protected voidXmlReader. readXmlDecl(AnyValueWriter root, ByteArray array)
-