public final class CharsetUtils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
length(CharSequence content,
Charset charset)
Calculates the byte length of the specified content using the given charset.
|
public static int length(CharSequence content, Charset charset)
content
- The content to measurecharset
- The character setNullPointerException
- if either argument is null
.Copyright © 2016 Allette Systems. All rights reserved.