- All Implemented Interfaces:
Serializable
,Comparable<Serialization>
- Author:
- AO Industries, Inc.
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Serialization
The default serialization for older implementations that do not set any. -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Gets the content-type header to use for this serialization.abstract String
Gets the self-closing tag characters.static Serialization
static Serialization
select
(Enumeration<? extends String> acceptHeaderValues) static Serialization
Determine if the content may be served asapplication/xhtml+xml
by the rules defined in http://www.w3.org/TR/xhtml-media-types/.selfClose
(Appendable out) Appends the self-closing tag characters.static Serialization
Returns the enum constant of this type with the specified name.static Serialization[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SGML
-
XML
-
-
Field Details
-
DEFAULT
The default serialization for older implementations that do not set any.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getContentType
Gets the content-type header to use for this serialization. -
getSelfClose
Gets the self-closing tag characters. -
selfClose
Appends the self-closing tag characters.- Throws:
IOException
-
select
Determine if the content may be served asapplication/xhtml+xml
by the rules defined in http://www.w3.org/TR/xhtml-media-types/. Default toapplication/xhtml+xml
as discussed at http://www.smackthemouse.com/xhtmlxml -
select
-
select
-