/**
  * Sets the allowed maximum size of an encoded String. If the size of the encoded String exceeds
  * this value, the encoder will throw a {@link IllegalArgumentException}. The default value is
  * {@link PrefixedStringEncoder#DEFAULT_MAX_DATA_LENGTH}.
  *
  * <p>This method does the same job as {@link PrefixedStringEncoder#getMaxDataLength()}.
  *
  * @param maxDataLength allowed maximum size of an encoded String.
  */
 public void setEncoderMaxDataLength(int maxDataLength) {
   encoder.setMaxDataLength(maxDataLength);
 }
 /**
  * Gets the length of the length prefix (1, 2, or 4) used by the encoder
  *
  * @return length of the length prefix
  */
 public int getEncoderPrefixLength() {
   return encoder.getPrefixLength();
 }
 /**
  * Returns the allowed maximum size of an encoded string. If the size of the encoded String
  * exceeds this value, the encoder will throw a {@link IllegalArgumentException}. The default
  * value is {@link PrefixedStringEncoder#DEFAULT_MAX_DATA_LENGTH}.
  *
  * <p>This method does the same job as {@link PrefixedStringEncoder#setMaxDataLength(int)}.
  *
  * @return the allowed maximum size of an encoded string.
  */
 public int getEncoderMaxDataLength() {
   return encoder.getMaxDataLength();
 }
 /**
  * Sets the length of the prefix used by the encoder
  *
  * @param prefixLength the length of the length prefix (1, 2, or 4)
  */
 public void setEncoderPrefixLength(int prefixLength) {
   encoder.setPrefixLength(prefixLength);
 }