本文整理汇总了Java中com.ociweb.pronghorn.pipe.PipeWriter.writeUTF8方法的典型用法代码示例。如果您正苦于以下问题:Java PipeWriter.writeUTF8方法的具体用法?Java PipeWriter.writeUTF8怎么用?Java PipeWriter.writeUTF8使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ociweb.pronghorn.pipe.PipeWriter
的用法示例。
在下文中一共展示了PipeWriter.writeUTF8方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: publishConnect
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
private void publishConnect(Pipe<MQTTClientRequestSchema> output) {
PipeWriter.presumeWriteFragment(output, MQTTClientRequestSchema.MSG_CONNECT_1);
PipeWriter.writeInt(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_KEEPALIVESEC_28, keepAliveSeconds);
PipeWriter.writeInt(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_FLAGS_29, flags);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_CLIENTID_30, (CharSequence) clientId);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_WILLTOPIC_31, (CharSequence) lastWillTopic);
DataOutputBlobWriter<MQTTClientRequestSchema> writer = PipeWriter.outputStream(output);
DataOutputBlobWriter.openField(writer);
if(null!= lastWillPayload) {
lastWillPayload.write((MQTTWriter)writer);
}
DataOutputBlobWriter.closeHighLevelField(writer, MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_WILLPAYLOAD_32);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_USER_33, (CharSequence) user);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_CONNECT_1_FIELD_PASS_34, (CharSequence) pass);
PipeWriter.publishWrites(output);
}
示例2: publishUser
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishUser(Pipe<TwitterEventSchema> output, int fieldFlags, long fieldUserId, CharSequence fieldName, CharSequence fieldScreenName, int fieldFavouritesCount, int fieldFollowersCount, int fieldFriendsCount, CharSequence fieldCreatedAt, CharSequence fieldDescription, int fieldListedCount, CharSequence fieldLanguage, CharSequence fieldTimeZone, CharSequence fieldLocation) {
PipeWriter.presumeWriteFragment(output, MSG_USER_100);
PipeWriter.writeInt(output,MSG_USER_100_FIELD_FLAGS_31, fieldFlags);
PipeWriter.writeLong(output,MSG_USER_100_FIELD_USERID_51, fieldUserId);
PipeWriter.writeUTF8(output,MSG_USER_100_FIELD_NAME_52, fieldName);
PipeWriter.writeUTF8(output,MSG_USER_100_FIELD_SCREENNAME_53, fieldScreenName);
PipeWriter.writeInt(output,MSG_USER_100_FIELD_FAVOURITESCOUNT_54, fieldFavouritesCount);
PipeWriter.writeInt(output,MSG_USER_100_FIELD_FOLLOWERSCOUNT_55, fieldFollowersCount);
PipeWriter.writeInt(output,MSG_USER_100_FIELD_FRIENDSCOUNT_56, fieldFriendsCount);
PipeWriter.writeUTF8(output,MSG_USER_100_FIELD_CREATEDAT_57, fieldCreatedAt);
PipeWriter.writeUTF8(output,MSG_USER_100_FIELD_DESCRIPTION_58, fieldDescription);
PipeWriter.writeInt(output,MSG_USER_100_FIELD_LISTEDCOUNT_59, fieldListedCount);
PipeWriter.writeUTF8(output,MSG_USER_100_FIELD_LANGUAGE_60, fieldLanguage);
PipeWriter.writeUTF8(output,MSG_USER_100_FIELD_TIMEZONE_61, fieldTimeZone);
PipeWriter.writeUTF8(output,MSG_USER_100_FIELD_LOCATION_62, fieldLocation);
PipeWriter.publishWrites(output);
}
示例3: publishUserPost
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishUserPost(Pipe<TwitterEventSchema> output, int fieldFlags, long fieldUserId, CharSequence fieldName, CharSequence fieldScreenName, int fieldFavouritesCount, int fieldFollowersCount, int fieldFriendsCount, CharSequence fieldCreatedAt, CharSequence fieldDescription, int fieldListedCount, CharSequence fieldLanguage, CharSequence fieldTimeZone, CharSequence fieldLocation, long fieldPostId, CharSequence fieldText, long fieldInReplyTo) {
PipeWriter.presumeWriteFragment(output, MSG_USERPOST_101);
PipeWriter.writeInt(output,MSG_USERPOST_101_FIELD_FLAGS_31, fieldFlags);
PipeWriter.writeLong(output,MSG_USERPOST_101_FIELD_USERID_51, fieldUserId);
PipeWriter.writeUTF8(output,MSG_USERPOST_101_FIELD_NAME_52, fieldName);
PipeWriter.writeUTF8(output,MSG_USERPOST_101_FIELD_SCREENNAME_53, fieldScreenName);
PipeWriter.writeInt(output,MSG_USERPOST_101_FIELD_FAVOURITESCOUNT_54, fieldFavouritesCount);
PipeWriter.writeInt(output,MSG_USERPOST_101_FIELD_FOLLOWERSCOUNT_55, fieldFollowersCount);
PipeWriter.writeInt(output,MSG_USERPOST_101_FIELD_FRIENDSCOUNT_56, fieldFriendsCount);
PipeWriter.writeUTF8(output,MSG_USERPOST_101_FIELD_CREATEDAT_57, fieldCreatedAt);
PipeWriter.writeUTF8(output,MSG_USERPOST_101_FIELD_DESCRIPTION_58, fieldDescription);
PipeWriter.writeInt(output,MSG_USERPOST_101_FIELD_LISTEDCOUNT_59, fieldListedCount);
PipeWriter.writeUTF8(output,MSG_USERPOST_101_FIELD_LANGUAGE_60, fieldLanguage);
PipeWriter.writeUTF8(output,MSG_USERPOST_101_FIELD_TIMEZONE_61, fieldTimeZone);
PipeWriter.writeUTF8(output,MSG_USERPOST_101_FIELD_LOCATION_62, fieldLocation);
PipeWriter.writeLong(output,MSG_USERPOST_101_FIELD_POSTID_21, fieldPostId);
PipeWriter.writeUTF8(output,MSG_USERPOST_101_FIELD_TEXT_22, fieldText);
PipeWriter.writeLong(output,MSG_USERPOST_101_FIELD_INREPLYTO_23, fieldInReplyTo);
PipeWriter.publishWrites(output);
}
示例4: publishPublish
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishPublish(Pipe<MessagePubSub> output, int fieldQOS, CharSequence fieldTopic, byte[] fieldPayloadBacking, int fieldPayloadPosition, int fieldPayloadLength) {
PipeWriter.presumeWriteFragment(output, MSG_PUBLISH_103);
PipeWriter.writeInt(output,MSG_PUBLISH_103_FIELD_QOS_5, fieldQOS);
PipeWriter.writeUTF8(output,MSG_PUBLISH_103_FIELD_TOPIC_1, fieldTopic);
PipeWriter.writeBytes(output,MSG_PUBLISH_103_FIELD_PAYLOAD_3, fieldPayloadBacking, fieldPayloadPosition, fieldPayloadLength);
PipeWriter.publishWrites(output);
}
示例5: publishBrokerConfig
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
private void publishBrokerConfig(Pipe<MQTTClientRequestSchema> output) {
PipeWriter.presumeWriteFragment(output, MQTTClientRequestSchema.MSG_BROKERCONFIG_100);
PipeWriter.writeUTF8(output,MQTTClientRequestSchema.MSG_BROKERCONFIG_100_FIELD_HOST_26, (CharSequence) host);
PipeWriter.writeInt(output,MQTTClientRequestSchema.MSG_BROKERCONFIG_100_FIELD_PORT_27, port);
PipeWriter.publishWrites(output);
}
示例6: publishPartNumber
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishPartNumber(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, CharSequence fieldPartNumber) {
PipeWriter.presumeWriteFragment(output, MSG_PARTNUMBER_330);
PipeWriter.writeInt(output,MSG_PARTNUMBER_330_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_PARTNUMBER_330_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeUTF8(output,MSG_PARTNUMBER_330_FIELD_PARTNUMBER_30, fieldPartNumber);
PipeWriter.publishWrites(output);
}
示例7: publishPressureFault
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishPressureFault(Pipe<ValveSchema> output, int fieldStation, long fieldTimestamp, CharSequence fieldPressureFault) {
PipeWriter.presumeWriteFragment(output, MSG_PRESSUREFAULT_350);
PipeWriter.writeInt(output,MSG_PRESSUREFAULT_350_FIELD_STATION_1, fieldStation);
PipeWriter.writeLong(output,MSG_PRESSUREFAULT_350_FIELD_TIMESTAMP_2, fieldTimestamp);
PipeWriter.writeUTF8(output,MSG_PRESSUREFAULT_350_FIELD_PRESSUREFAULT_50, fieldPressureFault);
PipeWriter.publishWrites(output);
}
示例8: publishBrokerConfig
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static boolean publishBrokerConfig(Pipe<MQTTClientRequestSchema> output, CharSequence fieldHost, int fieldPort) {
boolean result = false;
if (PipeWriter.tryWriteFragment(output, MSG_BROKERCONFIG_100)) {
PipeWriter.writeUTF8(output,MSG_BROKERCONFIG_100_FIELD_HOST_26, fieldHost);
PipeWriter.writeInt(output,MSG_BROKERCONFIG_100_FIELD_PORT_27, fieldPort);
PipeWriter.publishWrites(output);
result = true;
}
return result;
}
示例9: publishConnect
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static boolean publishConnect(Pipe<MQTTClientRequestSchema> output, int fieldKeepAliveSec, int fieldFlags, CharSequence fieldClientId, CharSequence fieldWillTopic, byte[] fieldWillPayloadBacking, int fieldWillPayloadPosition, int fieldWillPayloadLength, CharSequence fieldUser, CharSequence fieldPass) {
boolean result = false;
if (PipeWriter.tryWriteFragment(output, MSG_CONNECT_1)) {
PipeWriter.writeInt(output,MSG_CONNECT_1_FIELD_KEEPALIVESEC_28, fieldKeepAliveSec);
PipeWriter.writeInt(output,MSG_CONNECT_1_FIELD_FLAGS_29, fieldFlags);
PipeWriter.writeUTF8(output,MSG_CONNECT_1_FIELD_CLIENTID_30, fieldClientId);
PipeWriter.writeUTF8(output,MSG_CONNECT_1_FIELD_WILLTOPIC_31, fieldWillTopic);
PipeWriter.writeBytes(output,MSG_CONNECT_1_FIELD_WILLPAYLOAD_32, fieldWillPayloadBacking, fieldWillPayloadPosition, fieldWillPayloadLength);
PipeWriter.writeUTF8(output,MSG_CONNECT_1_FIELD_USER_33, fieldUser);
PipeWriter.writeUTF8(output,MSG_CONNECT_1_FIELD_PASS_34, fieldPass);
PipeWriter.publishWrites(output);
result = true;
}
return result;
}
示例10: publishPublish
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static boolean publishPublish(Pipe<MQTTClientRequestSchema> output, int fieldQOS, int fieldRetain, CharSequence fieldTopic, byte[] fieldPayloadBacking, int fieldPayloadPosition, int fieldPayloadLength) {
boolean result = false;
if (PipeWriter.tryWriteFragment(output, MSG_PUBLISH_3)) {
PipeWriter.writeInt(output,MSG_PUBLISH_3_FIELD_QOS_21, fieldQOS);
PipeWriter.writeInt(output,MSG_PUBLISH_3_FIELD_RETAIN_22, fieldRetain);
PipeWriter.writeUTF8(output,MSG_PUBLISH_3_FIELD_TOPIC_23, fieldTopic);
PipeWriter.writeBytes(output,MSG_PUBLISH_3_FIELD_PAYLOAD_25, fieldPayloadBacking, fieldPayloadPosition, fieldPayloadLength);
PipeWriter.publishWrites(output);
result = true;
}
return result;
}
示例11: publishSubscribe
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static boolean publishSubscribe(Pipe<MQTTClientRequestSchema> output, int fieldQOS, CharSequence fieldTopic) {
boolean result = false;
if (PipeWriter.tryWriteFragment(output, MSG_SUBSCRIBE_8)) {
PipeWriter.writeInt(output,MSG_SUBSCRIBE_8_FIELD_QOS_21, fieldQOS);
PipeWriter.writeUTF8(output,MSG_SUBSCRIBE_8_FIELD_TOPIC_23, fieldTopic);
PipeWriter.publishWrites(output);
result = true;
}
return result;
}
示例12: publishUnSubscribe
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static boolean publishUnSubscribe(Pipe<MQTTClientRequestSchema> output, CharSequence fieldTopic) {
boolean result = false;
if (PipeWriter.tryWriteFragment(output, MSG_UNSUBSCRIBE_10)) {
PipeWriter.writeUTF8(output,MSG_UNSUBSCRIBE_10_FIELD_TOPIC_23, fieldTopic);
PipeWriter.publishWrites(output);
result = true;
}
return result;
}
示例13: publishConnect
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishConnect(Pipe<MQTTClientToServerSchema> output, long fieldTime, int fieldKeepAliveSec, int fieldFlags, CharSequence fieldClientId, CharSequence fieldWillTopic, byte[] fieldWillPayloadBacking, int fieldWillPayloadPosition, int fieldWillPayloadLength, CharSequence fieldUser, CharSequence fieldPass) {
PipeWriter.presumeWriteFragment(output, MSG_CONNECT_1);
PipeWriter.writeLong(output,MSG_CONNECT_1_FIELD_TIME_37, fieldTime);
PipeWriter.writeInt(output,MSG_CONNECT_1_FIELD_KEEPALIVESEC_28, fieldKeepAliveSec);
PipeWriter.writeInt(output,MSG_CONNECT_1_FIELD_FLAGS_29, fieldFlags);
PipeWriter.writeUTF8(output,MSG_CONNECT_1_FIELD_CLIENTID_30, fieldClientId);
PipeWriter.writeUTF8(output,MSG_CONNECT_1_FIELD_WILLTOPIC_31, fieldWillTopic);
PipeWriter.writeBytes(output,MSG_CONNECT_1_FIELD_WILLPAYLOAD_32, fieldWillPayloadBacking, fieldWillPayloadPosition, fieldWillPayloadLength);
PipeWriter.writeUTF8(output,MSG_CONNECT_1_FIELD_USER_33, fieldUser);
PipeWriter.writeUTF8(output,MSG_CONNECT_1_FIELD_PASS_34, fieldPass);
PipeWriter.publishWrites(output);
}
示例14: publishPublish
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishPublish(Pipe<MQTTClientToServerSchema> output, long fieldTime, int fieldPacketId, int fieldQOS, int fieldRetain, CharSequence fieldTopic, byte[] fieldPayloadBacking, int fieldPayloadPosition, int fieldPayloadLength) {
PipeWriter.presumeWriteFragment(output, MSG_PUBLISH_3);
PipeWriter.writeLong(output,MSG_PUBLISH_3_FIELD_TIME_37, fieldTime);
PipeWriter.writeInt(output,MSG_PUBLISH_3_FIELD_PACKETID_20, fieldPacketId);
PipeWriter.writeInt(output,MSG_PUBLISH_3_FIELD_QOS_21, fieldQOS);
PipeWriter.writeInt(output,MSG_PUBLISH_3_FIELD_RETAIN_22, fieldRetain);
PipeWriter.writeUTF8(output,MSG_PUBLISH_3_FIELD_TOPIC_23, fieldTopic);
PipeWriter.writeBytes(output,MSG_PUBLISH_3_FIELD_PAYLOAD_25, fieldPayloadBacking, fieldPayloadPosition, fieldPayloadLength);
PipeWriter.publishWrites(output);
}
示例15: publishSubscribe
import com.ociweb.pronghorn.pipe.PipeWriter; //导入方法依赖的package包/类
public static void publishSubscribe(Pipe<MQTTClientToServerSchema> output, long fieldTime, int fieldPacketId, int fieldQOS, CharSequence fieldTopic) {
PipeWriter.presumeWriteFragment(output, MSG_SUBSCRIBE_8);
PipeWriter.writeLong(output,MSG_SUBSCRIBE_8_FIELD_TIME_37, fieldTime);
PipeWriter.writeInt(output,MSG_SUBSCRIBE_8_FIELD_PACKETID_20, fieldPacketId);
PipeWriter.writeInt(output,MSG_SUBSCRIBE_8_FIELD_QOS_21, fieldQOS);
PipeWriter.writeUTF8(output,MSG_SUBSCRIBE_8_FIELD_TOPIC_23, fieldTopic);
PipeWriter.publishWrites(output);
}