/** * 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); }
/** * 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); }
/** * 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); }