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