Package org.apache.webdav.lib.util
Class PropertyWriter
java.lang.Object
org.apache.webdav.lib.util.PropertyWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Canonical output.protected PrintWriter
Print writer. -
Constructor Summary
ConstructorsConstructorDescriptionPropertyWriter
(boolean canonical) Default constructor.PropertyWriter
(Writer writer, boolean canonical) PropertyWriter
(String encoding, boolean canonical) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static boolean
isValidJavaEncoding
(String encoding) protected String
Normalizes the given string.void
Prints the specified node, recursively.static void
setWriterEncoding
(String encoding) protected Attr[]
sortAttributes
(NamedNodeMap attrs) Returns a sorted list of attributes.
-
Field Details
-
out
Print writer. -
canonical
protected boolean canonicalCanonical output.
-
-
Constructor Details
-
PropertyWriter
- Throws:
UnsupportedEncodingException
-
PropertyWriter
Default constructor.- Throws:
UnsupportedEncodingException
-
PropertyWriter
-
-
Method Details
-
getWriterEncoding
-
setWriterEncoding
-
isValidJavaEncoding
-
print
Prints the specified node, recursively. -
sortAttributes
Returns a sorted list of attributes. -
normalize
Normalizes the given string.
-