private static int selectStyle ( char ch ) { switch ( ch ) { case ' ' : return SHORT ; case ' ' : return MEDIUM ; case ' ' : return LONG ; case ' ' : return FULL ; case ' ' : return NONE ; default : throw new IllegalArgumentException ( "Invalid style character: " + ch ) ; } }
Gets the JDK style code from the Joda code .