Modifier and Type | Field and Description |
---|---|
static CharacterSet |
CharacterSet.ALL
All character sets acceptable.
|
static CharacterSet |
CharacterSet.DEFAULT
The default character set of the JVM.
|
static CharacterSet |
CharacterSet.ISO_8859_1
The ISO/IEC 8859-1 (Latin 1) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_10
The ISO/IEC 8859-10 (Latin 6) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_2
The ISO/IEC 8859-2 (Latin 2) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_3
The ISO/IEC 8859-3 (Latin 3) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_4
The ISO/IEC 8859-4 (Latin 4) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_5
The ISO/IEC 8859-5 (Cyrillic) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_6
The ISO/IEC 8859-6 (Arabic) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_7
The ISO/IEC 8859-7 (Greek) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_8
The ISO/IEC 8859-8 (Hebrew) character set.
|
static CharacterSet |
CharacterSet.ISO_8859_9
The ISO/IEC 8859-9 (Latin 5) character set.
|
static CharacterSet |
CharacterSet.MACINTOSH
The Macintosh ("Mac OS Roman") character set.
|
static CharacterSet |
CharacterSet.US_ASCII
The US-ASCII character set.
|
static CharacterSet |
CharacterSet.UTF_16
The UTF-16 character set.
|
static CharacterSet |
CharacterSet.UTF_8
The UTF-8 character set.
|
static CharacterSet |
CharacterSet.WINDOWS_1252
The Windows-1252 ('ANSI') character set.
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
ClientInfo.getPreferredCharacterSet(List<CharacterSet> supported)
Returns the preferred character set among a list of supported ones, based
on the client preferences.
|
static CharacterSet |
CharacterSet.valueOf(String name)
Returns the character set associated to a name.
|
Modifier and Type | Method and Description |
---|---|
List<Preference<CharacterSet>> |
ClientInfo.getAcceptedCharacterSets()
Returns the modifiable list of character set preferences.
|
Modifier and Type | Method and Description |
---|---|
static String |
Reference.decode(String toDecode,
CharacterSet characterSet)
Decodes a given string using the standard URI encoding mechanism.
|
void |
Parameter.encode(Appendable buffer,
CharacterSet characterSet)
Encodes the parameter into the target buffer.
|
String |
Form.encode(CharacterSet characterSet)
URL encodes the form.
|
String |
Parameter.encode(CharacterSet characterSet)
Encodes the parameter as a string.
|
String |
Form.encode(CharacterSet characterSet,
char separator)
URL encodes the form.
|
static String |
Reference.encode(String toEncode,
boolean queryString,
CharacterSet characterSet)
Encodes a given string using the standard URI encoding mechanism and the
UTF-8 character set.
|
static String |
Reference.encode(String toEncode,
CharacterSet characterSet)
Encodes a given string using the standard URI encoding mechanism.
|
Form |
Reference.getMatrixAsForm(CharacterSet characterSet)
Returns the optional matrix as a form submission.
|
String |
Form.getMatrixString(CharacterSet characterSet)
Formats the form as a query string.
|
Form |
Reference.getQueryAsForm(CharacterSet characterSet)
Returns the optional query component as a form submission.
|
String |
Form.getQueryString(CharacterSet characterSet)
Formats the form as a query string.
|
Representation |
Form.getWebRepresentation(CharacterSet characterSet)
Returns the form as a Web representation
(MediaType.APPLICATION_WWW_FORM).
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
ClientInfo.getPreferredCharacterSet(List<CharacterSet> supported)
Returns the preferred character set among a list of supported ones, based
on the client preferences.
|
void |
ClientInfo.setAcceptedCharacterSets(List<Preference<CharacterSet>> acceptedCharacterSets)
Sets the character set preferences.
|
Constructor and Description |
---|
Form(String queryString,
CharacterSet characterSet)
Constructor.
|
Form(String queryString,
CharacterSet characterSet,
boolean decode)
Constructor.
|
Form(String parametersString,
CharacterSet characterSet,
char separator)
Constructor.
|
Form(String parametersString,
CharacterSet characterSet,
char separator,
boolean decode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
MetadataExtension.getCharacterSet()
Returns the character set.
|
Modifier and Type | Method and Description |
---|---|
protected List<Preference<CharacterSet>> |
StrictConneg.getCharacterSetPrefs()
Returns the enriched list of character set preferences.
|
protected List<Preference<CharacterSet>> |
FlexibleConneg.getCharacterSetPrefs()
Returns the enriched list of character set preferences.
|
Modifier and Type | Method and Description |
---|---|
float |
StrictConneg.scoreCharacterSet(CharacterSet characterSet)
Scores a character set relatively to enriched client preferences.
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
ContentType.getCharacterSet()
Returns the character set.
|
static CharacterSet |
ContentType.readCharacterSet(String contentType)
Parses the given content type header and returns the character set.
|
Modifier and Type | Method and Description |
---|---|
HeaderWriter<V> |
HeaderWriter.appendUriEncoded(CharSequence source,
CharacterSet characterSet)
Formats and appends a source string as an URI encoded string.
|
static String |
ContentType.writeHeader(MediaType mediaType,
CharacterSet characterSet)
Writes the HTTP "Content-Type" header.
|
Constructor and Description |
---|
ContentType(MediaType mediaType,
CharacterSet characterSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Reader |
IoUtils.getReader(InputStream stream,
CharacterSet characterSet)
Returns a reader from an input stream and a character set.
|
static InputStream |
IoUtils.getStream(Reader reader,
CharacterSet characterSet)
Returns an input stream based on a given character reader.
|
static OutputStream |
IoUtils.getStream(Writer writer,
CharacterSet characterSet)
Returns an output stream based on a given writer.
|
static Writer |
IoUtils.getWriter(OutputStream outputStream,
CharacterSet characterSet)
Returns a writer to the given output stream, using the given character
set for encoding to bytes.
|
static String |
IoUtils.toString(InputStream inputStream,
CharacterSet characterSet)
Converts an input stream to a string using the specified character set
for decoding the input stream.
|
Constructor and Description |
---|
ReaderInputStream(Reader reader,
CharacterSet characterSet)
Constructor.
|
WriterOutputStream(Writer writer,
CharacterSet characterSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Parameter |
FormUtils.create(CharSequence name,
CharSequence value,
boolean decode,
CharacterSet characterSet)
Creates a parameter.
|
static Parameter |
FormUtils.getFirstParameter(String query,
String name,
CharacterSet characterSet,
char separator,
boolean decode)
Reads the first parameter with the given name.
|
static Object |
FormUtils.getParameter(String query,
String name,
CharacterSet characterSet,
char separator,
boolean decode)
Reads the parameters with the given name.
If multiple values are found, a list is returned created. |
static void |
FormUtils.getParameters(String parametersString,
Map<String,Object> parameters,
CharacterSet characterSet,
char separator,
boolean decode)
Reads the parameters whose name is a key in the given map.
If a matching parameter is found, its value is put in the map. If multiple values are found, a list is created and set in the map. |
static void |
FormUtils.parse(Form form,
String parametersString,
CharacterSet characterSet,
boolean decode,
char separator)
Parses a parameters string into a given form.
|
Constructor and Description |
---|
FormReader(String parametersString,
CharacterSet characterSet,
char separator)
Constructor.
|
FormReader(String parametersString,
CharacterSet characterSet,
char separator,
boolean decode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static FormData |
FormUtils.create(CharSequence name,
CharSequence value,
boolean decode,
CharacterSet characterSet)
Creates a form data.
|
static void |
FormUtils.getEntries(String queryString,
Map<String,Object> entries,
CharacterSet characterSet,
char separator)
Reads the entries whose name is a key in the given map.
If a matching entry is found, its value is put in the map. If multiple values are found, a list is created and set in the map. |
static Object |
FormUtils.getEntry(String query,
String name,
CharacterSet characterSet,
char separator)
Reads the entries with the given name.
If multiple values are found, a list is returned created. |
static FormData |
FormUtils.getFirstEntry(String query,
String name,
CharacterSet characterSet,
char separator)
Reads the first entry with the given name.
|
static void |
FormUtils.parse(Series<FormData> entriesSeries,
String queryString,
CharacterSet characterSet,
boolean decode,
char separator)
Parses a entries string into a given form.
|
Constructor and Description |
---|
FormReader(String queryString,
CharacterSet characterSet,
char separator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
Transformer.getResultCharacterSet()
Returns the character set of the result representation.
|
Modifier and Type | Method and Description |
---|---|
void |
Transformer.setResultCharacterSet(CharacterSet resultCharacterSet)
Sets the character set of the result representation.
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
Variant.getCharacterSet()
Returns the character set or null if not applicable.
|
Modifier and Type | Method and Description |
---|---|
void |
Variant.setCharacterSet(CharacterSet characterSet)
Sets the character set or null if not applicable.
Note that when used with HTTP connectors, this property maps to the "Content-Type" header. |
void |
StringRepresentation.setCharacterSet(CharacterSet characterSet) |
Constructor and Description |
---|
AppendableRepresentation(CharSequence text,
MediaType mediaType,
Language language,
CharacterSet characterSet)
Constructor.
|
StringRepresentation(CharSequence text,
MediaType mediaType,
Language language,
CharacterSet characterSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
MetadataService.getCharacterSet(String extension)
Returns the character set associated to this extension.
|
CharacterSet |
MetadataService.getDefaultCharacterSet()
Returns the default character set for textual representations.
|
Modifier and Type | Method and Description |
---|---|
List<CharacterSet> |
MetadataService.getAllCharacterSets(String extension)
Returns all the character sets associated to this extension.
|
Modifier and Type | Method and Description |
---|---|
void |
MetadataService.setDefaultCharacterSet(CharacterSet defaultCharacterSet)
Sets the default character set for local representations.
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
WrapperRepresentation.getCharacterSet() |
Modifier and Type | Method and Description |
---|---|
void |
WrapperRepresentation.setCharacterSet(CharacterSet characterSet) |
Copyright © 2005–2019. All rights reserved.