Package com.vaadin.flow.internal
Class EncodeUtil
java.lang.Object
com.vaadin.flow.internal.EncodeUtil
Utilities related to various encoding schemes.
 
For internal use only. May be renamed or removed in a future release.
- Since:
 - 1.0
 - Author:
 - Vaadin Ltd
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPureUSASCII(String text) Checks if the given string contains only US-ASCII characters.static Stringrfc2047Encode(String value) Encodes the given header field param as defined in RFC 2047 for use in e.g.static Stringrfc5987Encode(String value) Encodes the given string to UTF-8value-charsas defined in RFC5987 for use in e.g. 
- 
Method Details
- 
rfc5987Encode
Encodes the given string to UTF-8value-charsas defined in RFC5987 for use in e.g. theContent-DispositionHTTP header.- Parameters:
 value- the string to encode, notnull- Returns:
 - the encoded string
 
 - 
rfc2047Encode
Encodes the given header field param as defined in RFC 2047 for use in e.g. theContent-DispositionHTTP header.- Parameters:
 value- the string to encode, notnull- Returns:
 - the encoded string
 
 - 
isPureUSASCII
Checks if the given string contains only US-ASCII characters.- Parameters:
 text- the string to check, notnull- Returns:
 trueif the string contains only US-ASCII characters,
 
 -