Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.huguesjohnson.tiamat
Class CharacterFactory

    java.lang.Object
      com.huguesjohnson.tiamat.CharacterFactory

    public abstract class CharacterFactory

extends java.lang.Object

CharacterFactory - Abstract factory to select an appropriate Character for a given file

Author:
  Hugues Johnson

Constructor Summary
`CharacterFactory()`

Method Summary
`static Character` | `load(java.lang.String path, Formatter formatter)` Chooses an appropriate Character for the given file and loads it, throws UnsupportedCharacterException if one can not be found.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CharacterFactory

    public CharacterFactory()

Method Detail

### load

    public static final Character load(java.lang.String path,
                                       Formatter formatter)
                                throws UnsupportedCharacterException

  Chooses an appropriate Character for the given file and loads it, throws UnsupportedCharacterException if one can not be found.

  Parameters:
    `path` - The absolute path to the serialized Character file.
    `formatter` - The formatter used to deserialze the Character file.
  Returns:
    The deserialized Character.
  Throws:
    `UnsupportedCharacterException` - If the file can be deserialized to a known Character implementation.

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hugues Johnson