All Packages Class Hierarchy This Package Previous Next Index
Class org.xmlmiddleware.conversions.formatters.NoFormatter
java.lang.Object
|
+----org.xmlmiddleware.conversions.formatters.NoFormatter
- public class NoFormatter
- extends Object
- implements StringFormatter
StringFormatter that just throws exceptions. For unsupported data types.
- Version:
- 2.0
- Author:
- Ronald Bourret, 2002
-
NoFormatter()
-
-
canConvert(int)
- Whether the class can convert to/from a certain type of object.
-
format(Object)
- Throw an exception instead of formatting an object.
-
parse(String, int)
- Throw an exception instead of parsing a string.
NoFormatter
public NoFormatter()
parse
public Object parse(String s,
int jdbcType) throws XMLMiddlewareException
- Throw an exception instead of parsing a string.
- Parameters:
- The - string to parse.
- A - JDBC Types value indicating the type of object to return.
- Returns:
- Never reached.
- Throws: XMLMiddlewareException
- Always thrown
format
public String format(Object o) throws XMLMiddlewareException
- Throw an exception instead of formatting an object.
- Parameters:
- The - object to serialize.
- Returns:
- Never reached.
- Throws: XMLMiddlewareException
- Always thrown.
canConvert
public boolean canConvert(int type)
- Whether the class can convert to/from a certain type of object.
- Parameters:
- type - The JDBC Types value corresponding to the object type.
- Returns:
- Always false.
All Packages Class Hierarchy This Package Previous Next Index