Uses of Class
org.restlet.data.CharacterSet
Packages that use CharacterSet
Package
Description
Information exchanged by components.
Supports Restlet applications.
Supports HTTP header parsing and formatting.
Supports input and output work.
General utilities.
Common representation data elements.
Services used by applications and components.
Various utility classes.
-
Uses of CharacterSet in org.restlet.data
Fields in org.restlet.data declared as CharacterSetModifier and TypeFieldDescriptionstatic final CharacterSetCharacterSet.ALLAll character sets acceptable.static final CharacterSetCharacterSet.DEFAULTThe default character set of the JVM.static final CharacterSetCharacterSet.ISO_8859_1The ISO/IEC 8859-1 (Latin 1) character set.static final CharacterSetCharacterSet.ISO_8859_10The ISO/IEC 8859-10 (Latin 6) character set.static final CharacterSetCharacterSet.ISO_8859_2The ISO/IEC 8859-2 (Latin 2) character set.static final CharacterSetCharacterSet.ISO_8859_3The ISO/IEC 8859-3 (Latin 3) character set.static final CharacterSetCharacterSet.ISO_8859_4The ISO/IEC 8859-4 (Latin 4) character set.static final CharacterSetCharacterSet.ISO_8859_5The ISO/IEC 8859-5 (Cyrillic) character set.static final CharacterSetCharacterSet.ISO_8859_6The ISO/IEC 8859-6 (Arabic) character set.static final CharacterSetCharacterSet.ISO_8859_7The ISO/IEC 8859-7 (Greek) character set.static final CharacterSetCharacterSet.ISO_8859_8The ISO/IEC 8859-8 (Hebrew) character set.static final CharacterSetCharacterSet.ISO_8859_9The ISO/IEC 8859-9 (Latin 5) character set.static final CharacterSetCharacterSet.MACINTOSHThe Macintosh ("Mac OS Roman") character set.static final CharacterSetCharacterSet.US_ASCIIThe US-ASCII character set.static final CharacterSetCharacterSet.UTF_16The UTF-16 character set.static final CharacterSetCharacterSet.UTF_8The UTF-8 character set.static final CharacterSetCharacterSet.WINDOWS_1252The Windows-1252 ('ANSI') character set.Methods in org.restlet.data that return CharacterSetModifier and TypeMethodDescriptionClientInfo.getPreferredCharacterSet(List<CharacterSet> supported) Returns the preferred character set among a list of supported ones, based on the client preferences.static CharacterSetReturns the character set associated to a name.Methods in org.restlet.data that return types with arguments of type CharacterSetModifier and TypeMethodDescriptionClientInfo.getAcceptedCharacterSets()Returns the modifiable list of character set preferences.Methods in org.restlet.data with parameters of type CharacterSetModifier and TypeMethodDescriptionstatic StringReference.decode(String toDecode, CharacterSet characterSet) Decodes a given string using the standard URI encoding mechanism.Form.encode(CharacterSet characterSet) URL encodes the form.Form.encode(CharacterSet characterSet, char separator) URL encodes the form.voidParameter.encode(Appendable buffer, CharacterSet characterSet) Encodes the parameter into the target buffer.Parameter.encode(CharacterSet characterSet) Encodes the parameter as a string.static StringReference.encode(String toEncode, boolean queryString, CharacterSet characterSet) Encodes a given string using the standard URI encoding mechanism and the UTF-8 character set.static StringReference.encode(String toEncode, CharacterSet characterSet) Encodes a given string using the standard URI encoding mechanism.Reference.getMatrixAsForm(CharacterSet characterSet) Returns the optional matrix as a form submission.Form.getMatrixString(CharacterSet characterSet) Formats the form as a query string.Reference.getQueryAsForm(CharacterSet characterSet) Returns the optional query component as a form submission.Form.getQueryString(CharacterSet characterSet) Formats the form as a query string.Form.getWebRepresentation(CharacterSet characterSet) Returns the form as a Web representation (MediaType.APPLICATION_WWW_FORM).Method parameters in org.restlet.data with type arguments of type CharacterSetModifier and TypeMethodDescriptionClientInfo.getPreferredCharacterSet(List<CharacterSet> supported) Returns the preferred character set among a list of supported ones, based on the client preferences.voidClientInfo.setAcceptedCharacterSets(List<Preference<CharacterSet>> acceptedCharacterSets) Sets the character set preferences.Constructors in org.restlet.data with parameters of type CharacterSetModifierConstructorDescriptionForm(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. -
Uses of CharacterSet in org.restlet.engine.application
Methods in org.restlet.engine.application that return CharacterSetMethods in org.restlet.engine.application that return types with arguments of type CharacterSetModifier and TypeMethodDescriptionprotected List<Preference<CharacterSet>>FlexibleConneg.getCharacterSetPrefs()Returns the enriched list of character set preferences.protected List<Preference<CharacterSet>>StrictConneg.getCharacterSetPrefs()Returns the enriched list of character set preferences.Methods in org.restlet.engine.application with parameters of type CharacterSetModifier and TypeMethodDescriptionfloatStrictConneg.scoreCharacterSet(CharacterSet characterSet) Scores a character set relatively to enriched client preferences. -
Uses of CharacterSet in org.restlet.engine.header
Methods in org.restlet.engine.header that return CharacterSetModifier and TypeMethodDescriptionContentType.getCharacterSet()Returns the character set.static CharacterSetContentType.readCharacterSet(String contentType) Parses the given content type header and returns the character set.Methods in org.restlet.engine.header with parameters of type CharacterSetModifier and TypeMethodDescriptionHeaderWriter.appendUriEncoded(CharSequence source, CharacterSet characterSet) Formats and appends a source string as an URI encoded string.static StringContentType.writeHeader(MediaType mediaType, CharacterSet characterSet) Writes the HTTP "Content-Type" header.Constructors in org.restlet.engine.header with parameters of type CharacterSetModifierConstructorDescriptionContentType(MediaType mediaType, CharacterSet characterSet) Constructor. -
Uses of CharacterSet in org.restlet.engine.io
Methods in org.restlet.engine.io with parameters of type CharacterSetModifier and TypeMethodDescriptionstatic ReaderIoUtils.getReader(InputStream stream, CharacterSet characterSet) Returns a reader from an input stream and a character set.static InputStreamIoUtils.getStream(Reader reader, CharacterSet characterSet) Returns an input stream based on a given character reader.static OutputStreamIoUtils.getStream(Writer writer, CharacterSet characterSet) Returns an output stream based on a given writer.static WriterIoUtils.getWriter(OutputStream outputStream, CharacterSet characterSet) Returns a writer to the given output stream, using the given character set for encoding to bytes.static StringIoUtils.toString(InputStream inputStream, CharacterSet characterSet) Converts an input stream to a string using the specified character set for decoding the input stream.Constructors in org.restlet.engine.io with parameters of type CharacterSetModifierConstructorDescriptionReaderInputStream(Reader reader, CharacterSet characterSet) Constructor.WriterOutputStream(Writer writer, CharacterSet characterSet) Constructor. -
Uses of CharacterSet in org.restlet.engine.util
Methods in org.restlet.engine.util with parameters of type CharacterSetModifier and TypeMethodDescriptionstatic ParameterFormUtils.create(CharSequence name, CharSequence value, boolean decode, CharacterSet characterSet) Creates a parameter.static ParameterFormUtils.getFirstParameter(String query, String name, CharacterSet characterSet, char separator, boolean decode) Reads the first parameter with the given name.static ObjectFormUtils.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 voidFormUtils.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 voidFormUtils.parse(Form form, String parametersString, CharacterSet characterSet, boolean decode, char separator) Parses a parameters string into a given form.Constructors in org.restlet.engine.util with parameters of type CharacterSetModifierConstructorDescriptionFormReader(String parametersString, CharacterSet characterSet, char separator) Constructor.FormReader(String parametersString, CharacterSet characterSet, char separator, boolean decode) Constructor. -
Uses of CharacterSet in org.restlet.representation
Methods in org.restlet.representation that return CharacterSetModifier and TypeMethodDescriptionVariant.getCharacterSet()Returns the character set or null if not applicable.Methods in org.restlet.representation with parameters of type CharacterSetModifier and TypeMethodDescriptionvoidStringRepresentation.setCharacterSet(CharacterSet characterSet) voidVariant.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.Constructors in org.restlet.representation with parameters of type CharacterSetModifierConstructorDescriptionAppendableRepresentation(CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet) Constructor.StringRepresentation(CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet) Constructor. -
Uses of CharacterSet in org.restlet.service
Methods in org.restlet.service that return CharacterSetModifier and TypeMethodDescriptionMetadataService.getCharacterSet(String extension) Returns the character set associated to this extension.MetadataService.getDefaultCharacterSet()Returns the default character set for textual representations.Methods in org.restlet.service that return types with arguments of type CharacterSetModifier and TypeMethodDescriptionMetadataService.getAllCharacterSets(String extension) Returns all the character sets associated to this extension.Methods in org.restlet.service with parameters of type CharacterSetModifier and TypeMethodDescriptionvoidMetadataService.setDefaultCharacterSet(CharacterSet defaultCharacterSet) Sets the default character set for local representations. -
Uses of CharacterSet in org.restlet.util
Methods in org.restlet.util that return CharacterSetMethods in org.restlet.util with parameters of type CharacterSetModifier and TypeMethodDescriptionvoidWrapperRepresentation.setCharacterSet(CharacterSet characterSet)