|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.converters.basic.CharConverter
public class CharConverter
Converts a char primitive or java.lang.Character wrapper to a String. If char is \0 the representing String is empty.
| Constructor Summary | |
|---|---|
CharConverter()
|
|
| Method Summary | |
|---|---|
boolean |
canConvert(Class type)
Determines whether the converter can marshall a particular type. |
Object |
fromString(String str)
Unmarshals an Object from its single value representation. |
void |
marshal(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data. |
String |
toString(Object obj)
Marshals an Object into a single value representation. |
Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharConverter()
| Method Detail |
|---|
public boolean canConvert(Class type)
ConverterMatcher
canConvert in interface ConverterMatchertype - the Class representing the object type to be converted
public void marshal(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Converter
marshal in interface Convertersource - The object to be marshalled.writer - A stream to write to.context - A context that allows nested objects to be processed by XStream.
public Object unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Converter
unmarshal in interface Converterreader - The stream to read the text from.
public Object fromString(String str)
SingleValueConverter
fromString in interface SingleValueConverterstr - the String with the single value of the Object
public String toString(Object obj)
SingleValueConverter
toString in interface SingleValueConverterobj - the Object to be converted
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||