本文整理汇总了Java中com.ociweb.pronghorn.pipe.PipeReader.inputStream方法的典型用法代码示例。如果您正苦于以下问题:Java PipeReader.inputStream方法的具体用法?Java PipeReader.inputStream怎么用?Java PipeReader.inputStream使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ociweb.pronghorn.pipe.PipeReader
的用法示例。
在下文中一共展示了PipeReader.inputStream方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toString
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("topic: ");
PipeReader.readUTF8(pipe, topic, builder);
builder.append(" payload: ");
DataInputBlobReader<?> stream = PipeReader.inputStream(pipe, payload);
while (stream.hasRemainingBytes()) {
Appendables.appendFixedHexDigits(builder, (0xFF&stream.readByte()), 8);
if (stream.hasRemainingBytes()) {
builder.append(',');
}
}
return builder.toString();
}
示例2: consumeImageMessage
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
protected void consumeImageMessage(ImageListenerBase listener, Pipe<ImageSchema> inputPipe) {
while (PipeReader.tryReadFragment(inputPipe)) {
int msgIdx = PipeReader.getMsgIdx(inputPipe);
switch(msgIdx) {
case ImageSchema.MSG_CHUNKEDSTREAM_1:
DataInputBlobReader<ImageSchema> fieldByteArray = PipeReader.inputStream(inputPipe, ImageSchema.MSG_CHUNKEDSTREAM_1_FIELD_BYTEARRAY_2);
listener.onImage(fieldByteArray.readLine());
break;
case -1:
//requestShutdown();
break;
}
PipeReader.releaseReadLock(inputPipe);
}
}
示例3: consumeRestRequest
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeRestRequest(Pipe<HTTPRequestSchema> input) {
long fieldChannelId = PipeReader.readLong(input,MSG_RESTREQUEST_300_FIELD_CHANNELID_21);
int fieldSequence = PipeReader.readInt(input,MSG_RESTREQUEST_300_FIELD_SEQUENCE_26);
int fieldVerb = PipeReader.readInt(input,MSG_RESTREQUEST_300_FIELD_VERB_23);
DataInputBlobReader<HTTPRequestSchema> fieldParams = PipeReader.inputStream(input, MSG_RESTREQUEST_300_FIELD_PARAMS_32);
int fieldRevision = PipeReader.readInt(input,MSG_RESTREQUEST_300_FIELD_REVISION_24);
int fieldRequestContext = PipeReader.readInt(input,MSG_RESTREQUEST_300_FIELD_REQUESTCONTEXT_25);
}
示例4: consumeWebSocketFrame
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeWebSocketFrame(Pipe<HTTPRequestSchema> input) {
long fieldChannelId = PipeReader.readLong(input,MSG_WEBSOCKETFRAME_100_FIELD_CHANNELID_21);
int fieldSequence = PipeReader.readInt(input,MSG_WEBSOCKETFRAME_100_FIELD_SEQUENCE_26);
int fieldFinOpp = PipeReader.readInt(input,MSG_WEBSOCKETFRAME_100_FIELD_FINOPP_11);
int fieldMask = PipeReader.readInt(input,MSG_WEBSOCKETFRAME_100_FIELD_MASK_10);
DataInputBlobReader<HTTPRequestSchema> fieldBinaryPayload = PipeReader.inputStream(input, MSG_WEBSOCKETFRAME_100_FIELD_BINARYPAYLOAD_12);
}
示例5: consumeConnect
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeConnect(Pipe<MQTTClientToServerSchema> input) {
long fieldTime = PipeReader.readLong(input,MSG_CONNECT_1_FIELD_TIME_37);
int fieldKeepAliveSec = PipeReader.readInt(input,MSG_CONNECT_1_FIELD_KEEPALIVESEC_28);
int fieldFlags = PipeReader.readInt(input,MSG_CONNECT_1_FIELD_FLAGS_29);
StringBuilder fieldClientId = PipeReader.readUTF8(input,MSG_CONNECT_1_FIELD_CLIENTID_30,new StringBuilder(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_CLIENTID_30)));
StringBuilder fieldWillTopic = PipeReader.readUTF8(input,MSG_CONNECT_1_FIELD_WILLTOPIC_31,new StringBuilder(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_WILLTOPIC_31)));
DataInputBlobReader<MQTTClientToServerSchema> fieldWillPayload = PipeReader.inputStream(input, MSG_CONNECT_1_FIELD_WILLPAYLOAD_32);
StringBuilder fieldUser = PipeReader.readUTF8(input,MSG_CONNECT_1_FIELD_USER_33,new StringBuilder(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_USER_33)));
StringBuilder fieldPass = PipeReader.readUTF8(input,MSG_CONNECT_1_FIELD_PASS_34,new StringBuilder(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_PASS_34)));
}
示例6: consumePublish
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumePublish(Pipe<MQTTClientToServerSchema> input) {
long fieldTime = PipeReader.readLong(input,MSG_PUBLISH_3_FIELD_TIME_37);
int fieldPacketId = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_PACKETID_20);
int fieldQOS = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_QOS_21);
int fieldRetain = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_RETAIN_22);
StringBuilder fieldTopic = PipeReader.readUTF8(input,MSG_PUBLISH_3_FIELD_TOPIC_23,new StringBuilder(PipeReader.readBytesLength(input,MSG_PUBLISH_3_FIELD_TOPIC_23)));
DataInputBlobReader<MQTTClientToServerSchema> fieldPayload = PipeReader.inputStream(input, MSG_PUBLISH_3_FIELD_PAYLOAD_25);
}
示例7: consumeHTTPPost
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeHTTPPost(Pipe<ClientHTTPRequestSchema> input) {
int fieldDestination = PipeReader.readInt(input,MSG_HTTPPOST_101_FIELD_DESTINATION_11);
int fieldSession = PipeReader.readInt(input,MSG_HTTPPOST_101_FIELD_SESSION_10);
int fieldPort = PipeReader.readInt(input,MSG_HTTPPOST_101_FIELD_PORT_1);
StringBuilder fieldHost = PipeReader.readUTF8(input,MSG_HTTPPOST_101_FIELD_HOST_2,new StringBuilder(PipeReader.readBytesLength(input,MSG_HTTPPOST_101_FIELD_HOST_2)));
StringBuilder fieldPath = PipeReader.readUTF8(input,MSG_HTTPPOST_101_FIELD_PATH_3,new StringBuilder(PipeReader.readBytesLength(input,MSG_HTTPPOST_101_FIELD_PATH_3)));
StringBuilder fieldHeaders = PipeReader.readUTF8(input,MSG_HTTPPOST_101_FIELD_HEADERS_7,new StringBuilder(PipeReader.readBytesLength(input,MSG_HTTPPOST_101_FIELD_HEADERS_7)));
DataInputBlobReader<ClientHTTPRequestSchema> fieldPayload = PipeReader.inputStream(input, MSG_HTTPPOST_101_FIELD_PAYLOAD_5);
}
示例8: consumeHTTPPostChunked
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeHTTPPostChunked(Pipe<ClientHTTPRequestSchema> input) {
int fieldDestination = PipeReader.readInt(input,MSG_HTTPPOSTCHUNKED_102_FIELD_DESTINATION_11);
int fieldSession = PipeReader.readInt(input,MSG_HTTPPOSTCHUNKED_102_FIELD_SESSION_10);
int fieldPort = PipeReader.readInt(input,MSG_HTTPPOSTCHUNKED_102_FIELD_PORT_1);
StringBuilder fieldHost = PipeReader.readUTF8(input,MSG_HTTPPOSTCHUNKED_102_FIELD_HOST_2,new StringBuilder(PipeReader.readBytesLength(input,MSG_HTTPPOSTCHUNKED_102_FIELD_HOST_2)));
StringBuilder fieldPath = PipeReader.readUTF8(input,MSG_HTTPPOSTCHUNKED_102_FIELD_PATH_3,new StringBuilder(PipeReader.readBytesLength(input,MSG_HTTPPOSTCHUNKED_102_FIELD_PATH_3)));
long fieldTotalLength = PipeReader.readLong(input,MSG_HTTPPOSTCHUNKED_102_FIELD_TOTALLENGTH_6);
DataInputBlobReader<ClientHTTPRequestSchema> fieldPayloadChunk = PipeReader.inputStream(input, MSG_HTTPPOSTCHUNKED_102_FIELD_PAYLOADCHUNK_5);
}
示例9: consumeFastHTTPPost
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeFastHTTPPost(Pipe<ClientHTTPRequestSchema> input) {
int fieldDestination = PipeReader.readInt(input,MSG_FASTHTTPPOST_201_FIELD_DESTINATION_11);
int fieldSession = PipeReader.readInt(input,MSG_FASTHTTPPOST_201_FIELD_SESSION_10);
int fieldPort = PipeReader.readInt(input,MSG_FASTHTTPPOST_201_FIELD_PORT_1);
StringBuilder fieldHost = PipeReader.readUTF8(input,MSG_FASTHTTPPOST_201_FIELD_HOST_2,new StringBuilder(PipeReader.readBytesLength(input,MSG_FASTHTTPPOST_201_FIELD_HOST_2)));
long fieldConnectionId = PipeReader.readLong(input,MSG_FASTHTTPPOST_201_FIELD_CONNECTIONID_20);
StringBuilder fieldPath = PipeReader.readUTF8(input,MSG_FASTHTTPPOST_201_FIELD_PATH_3,new StringBuilder(PipeReader.readBytesLength(input,MSG_FASTHTTPPOST_201_FIELD_PATH_3)));
StringBuilder fieldHeaders = PipeReader.readUTF8(input,MSG_FASTHTTPPOST_201_FIELD_HEADERS_7,new StringBuilder(PipeReader.readBytesLength(input,MSG_FASTHTTPPOST_201_FIELD_HEADERS_7)));
DataInputBlobReader<ClientHTTPRequestSchema> fieldPayload = PipeReader.inputStream(input, MSG_FASTHTTPPOST_201_FIELD_PAYLOAD_5);
}
示例10: consumePublish
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumePublish(Pipe<MessagePubSub> input) {
int fieldQOS = PipeReader.readInt(input,MSG_PUBLISH_103_FIELD_QOS_5);
StringBuilder fieldTopic = PipeReader.readUTF8(input,MSG_PUBLISH_103_FIELD_TOPIC_1,new StringBuilder(PipeReader.readBytesLength(input,MSG_PUBLISH_103_FIELD_TOPIC_1)));
DataInputBlobReader<MessagePubSub> fieldPayload = PipeReader.inputStream(input, MSG_PUBLISH_103_FIELD_PAYLOAD_3);
}
示例11: consumePublish
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumePublish(Pipe<MessagePrivate> input) {
DataInputBlobReader<MessagePrivate> fieldPayload = PipeReader.inputStream(input, MSG_PUBLISH_1_FIELD_PAYLOAD_3);
}
示例12: consumeToChannel
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeToChannel(Pipe<ServerResponseSchema> input) {
long fieldChannelId = PipeReader.readLong(input,MSG_TOCHANNEL_100_FIELD_CHANNELID_21);
int fieldSequenceNo = PipeReader.readInt(input,MSG_TOCHANNEL_100_FIELD_SEQUENCENO_23);
DataInputBlobReader<ServerResponseSchema> fieldPayload = PipeReader.inputStream(input, MSG_TOCHANNEL_100_FIELD_PAYLOAD_25);
int fieldRequestContext = PipeReader.readInt(input,MSG_TOCHANNEL_100_FIELD_REQUESTCONTEXT_24);
}
示例13: consumeToSubscription
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeToSubscription(Pipe<ServerResponseSchema> input) {
long fieldSubscriptionId = PipeReader.readLong(input,MSG_TOSUBSCRIPTION_200_FIELD_SUBSCRIPTIONID_22);
int fieldSequenceNo = PipeReader.readInt(input,MSG_TOSUBSCRIPTION_200_FIELD_SEQUENCENO_23);
DataInputBlobReader<ServerResponseSchema> fieldPayload = PipeReader.inputStream(input, MSG_TOSUBSCRIPTION_200_FIELD_PAYLOAD_25);
int fieldRequestContext = PipeReader.readInt(input,MSG_TOSUBSCRIPTION_200_FIELD_REQUESTCONTEXT_24);
}
示例14: consumeSkip
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeSkip(Pipe<ServerResponseSchema> input) {
DataInputBlobReader<ServerResponseSchema> fieldPayload = PipeReader.inputStream(input, MSG_SKIP_300_FIELD_PAYLOAD_25);
}
示例15: consumeResponse
import com.ociweb.pronghorn.pipe.PipeReader; //导入方法依赖的package包/类
public static void consumeResponse(Pipe<NetResponseSchema> input) {
long fieldConnectionId = PipeReader.readLong(input,MSG_RESPONSE_101_FIELD_CONNECTIONID_1);
int fieldContextFlags = PipeReader.readInt(input,MSG_RESPONSE_101_FIELD_CONTEXTFLAGS_5);
DataInputBlobReader<NetResponseSchema> fieldPayload = PipeReader.inputStream(input, MSG_RESPONSE_101_FIELD_PAYLOAD_3);
}