org.graphstream.stream.netstream.packing
Class Base64Packer

java.lang.Object
  extended by org.graphstream.stream.netstream.packing.NetStreamPacker
      extended by org.graphstream.stream.netstream.packing.Base64Packer

public class Base64Packer
extends NetStreamPacker


Constructor Summary
Base64Packer()
           
 
Method Summary
 ByteBuffer packMessage(ByteBuffer buffer, int startIndex, int endIndex)
          Pack the given ByteBuffer from startIndex to endIdex
 ByteBuffer packMessageSize(int capacity)
           
 
Methods inherited from class org.graphstream.stream.netstream.packing.NetStreamPacker
packMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64Packer

public Base64Packer()
Method Detail

packMessage

public ByteBuffer packMessage(ByteBuffer buffer,
                              int startIndex,
                              int endIndex)
Description copied from class: NetStreamPacker
Pack the given ByteBuffer from startIndex to endIdex

Specified by:
packMessage in class NetStreamPacker
Parameters:
buffer - The buffer to pack/encode
startIndex - the index at which the encoding starts in the buffer
endIndex - the index at which the encoding stops
Returns:
a ByteBuffer that is the packed version of the input one. It may not have the same size.

packMessageSize

public ByteBuffer packMessageSize(int capacity)
Specified by:
packMessageSize in class NetStreamPacker
Returns:


Copyright © 2012. All Rights Reserved.