@Override
  public void serializeInByteBufferObject(String object, ByteBuffer buffer, Object... hints) {
    int length = object.length();
    buffer.putInt(length);

    byte[] binaryData = new byte[length * 2];
    char[] stringContent = new char[length];

    object.getChars(0, length, stringContent, 0);

    int counter = 0;
    for (char character : stringContent) {
      binaryData[counter] = (byte) character;
      counter++;

      binaryData[counter] = (byte) (character >>> 8);
      counter++;
    }

    buffer.put(binaryData);
  }
@Override
  public void serializeInByteBufferObject(String object, ByteBuffer buffer, Object... hints) {
    int length = object.length();
    buffer.putInt(length);

    byte[] binaryData = new byte[length * 2];
    char[] stringContent = new char[length];

    object.getChars(0, length, stringContent, 0);

    int counter = 0;
    for (char character : stringContent) {
      binaryData[counter] = (byte) character;
      counter++;

      binaryData[counter] = (byte) (character >>> 8);
      counter++;
    }

    buffer.put(binaryData);
  }
@ Override public void serializeInByteBufferObject ( String object , ByteBuffer buffer , Object ... hints ) { int length = object . length ( ) ; buffer . putInt ( length ) ; byte [ ] binaryData = new byte [ length * 2 ] ; char [ ] stringContent = new char [ length ] ; object . getChars ( 0 , length , stringContent , 0 ) ; int counter = 0 ; for ( char character : stringContent ) { binaryData [ counter ] = ( byte ) character ; counter ++ ; binaryData [ counter ] = ( byte ) ( character >>> 8 ) ; counter ++ ; } buffer . put ( binaryData ) ; }
{@inheritDoc}
{