当前位置: 首页>>代码示例>>Java>>正文


Java PipeReader.inputStream方法代码示例

本文整理汇总了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();
}
 
开发者ID:oci-pronghorn,项目名称:GreenLightning,代码行数:21,代码来源:MessagePubSubTrace.java

示例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);
	}
}
 
开发者ID:oci-pronghorn,项目名称:FogLight,代码行数:16,代码来源:ReactiveIoTListenerStage.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:9,代码来源:HTTPRequestSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:8,代码来源:HTTPRequestSchema.java

示例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)));
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:11,代码来源:MQTTClientToServerSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:9,代码来源:MQTTClientToServerSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:10,代码来源:ClientHTTPRequestSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:10,代码来源:ClientHTTPRequestSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:11,代码来源:ClientHTTPRequestSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:GreenLightning,代码行数:6,代码来源:MessagePubSub.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:GreenLightning,代码行数:4,代码来源:MessagePrivate.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:7,代码来源:ServerResponseSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:7,代码来源:ServerResponseSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:4,代码来源:ServerResponseSchema.java

示例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);
}
 
开发者ID:oci-pronghorn,项目名称:Pronghorn,代码行数:6,代码来源:NetResponseSchema.java


注:本文中的com.ociweb.pronghorn.pipe.PipeReader.inputStream方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。