at.molindo.mysqlcollations
Class MySqlCollatorFactory

java.lang.Object
  extended by at.molindo.mysqlcollations.MySqlCollatorFactory
All Implemented Interfaces:
Serializable

public class MySqlCollatorFactory
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String CHARSET_DEFAULT
           
static String CHARSET_DIR
           
static String CHARSET_LATIN1
           
static String COLLATION_DEFAULT
           
static String COLLATION_LATIN1_SWEDISH_CI
           
 
Method Summary
 MySqlCollator getCollator(String charset, String collation)
           
 MySqlCollator getDefaultCollator()
           
static boolean isValidCharsetDirectory()
           
static MySqlCollatorFactory parse(File collation)
           
static MySqlCollatorFactory parse(InputSource source)
           
static MySqlCollatorFactory parse(InputStream in)
           
static MySqlCollatorFactory parse(Reader reader)
           
static MySqlCollatorFactory parse(String path)
           
static MySqlCollatorFactory parse(URL collation)
           
static MySqlCollatorFactory parseDefaultDirectory()
           
static MySqlCollatorFactory parseDirectory(File dir)
           
static MySqlCollatorFactory parseDirectory(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHARSET_LATIN1

public static final String CHARSET_LATIN1
See Also:
Constant Field Values

COLLATION_LATIN1_SWEDISH_CI

public static final String COLLATION_LATIN1_SWEDISH_CI
See Also:
Constant Field Values

CHARSET_DEFAULT

public static final String CHARSET_DEFAULT
See Also:
Constant Field Values

COLLATION_DEFAULT

public static final String COLLATION_DEFAULT
See Also:
Constant Field Values

CHARSET_DIR

public static final String CHARSET_DIR
See Also:
Constant Field Values
Method Detail

parse

public static MySqlCollatorFactory parse(String path)
                                  throws IOException,
                                         SAXException
Throws:
IOException
SAXException

parse

public static MySqlCollatorFactory parse(File collation)
                                  throws IOException,
                                         SAXException
Throws:
IOException
SAXException

parse

public static MySqlCollatorFactory parse(URL collation)
                                  throws IOException,
                                         SAXException
Throws:
IOException
SAXException

parse

public static MySqlCollatorFactory parse(InputStream in)
                                  throws IOException,
                                         SAXException
Throws:
IOException
SAXException

parse

public static MySqlCollatorFactory parse(Reader reader)
                                  throws IOException,
                                         SAXException
Throws:
IOException
SAXException

parseDirectory

public static MySqlCollatorFactory parseDirectory(String path)
                                           throws IOException,
                                                  SAXException
Throws:
IOException
SAXException

parseDirectory

public static MySqlCollatorFactory parseDirectory(File dir)
                                           throws IOException,
                                                  SAXException
Throws:
IOException
SAXException

isValidCharsetDirectory

public static boolean isValidCharsetDirectory()

parseDefaultDirectory

public static MySqlCollatorFactory parseDefaultDirectory()
                                                  throws IOException,
                                                         SAXException
Throws:
IOException
SAXException

parse

public static MySqlCollatorFactory parse(InputSource source)
                                  throws IOException,
                                         SAXException
Throws:
IOException
SAXException

getCollator

public MySqlCollator getCollator(String charset,
                                 String collation)

getDefaultCollator

public MySqlCollator getDefaultCollator()


Copyright © 2011 Molindo GmbH. All Rights Reserved.