Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. this.bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
  2. @Override
  3. public ChannelPipeline getPipeline() throws Exception {
  4. return Channels.pipeline(
  5. new StringDecoder(CharsetUtil.UTF_8),
  6. new StringEncoder(CharsetUtil.UTF_8),
  7. new DelimiterBasedFrameDecoder(
  8. ALLOWED_CHARACTER_BUFFER_SIZE, Delimiters
  9. .lineDelimiter()),
  10.  
  11. /* We also add our Clients own ChannelHandler. */
  12. new ClientChannelHandler());
  13. }
  14. });
  15.  
  16. byte[] byteVersion = searchPlanRepo.serialize(missionNum); // serialize the search plan
  17. searchPlanStr = new String(byteVersion, StandardCharsets.UTF_8);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement