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

## com.huguesjohnson.serialization
Interface Formatter

All Known Implementing Classes:
  XmlFormatter

public interface Formatter

Formatter - interface for writing a Storable object to a physical representation

Author:
  Hugues Johnson

Method Summary
`Storable` | `loadFrom(java.lang.String sourcePath)` Loads an object from the specified source path.
`void` | `saveTo(Storable object, java.lang.String outputPath)` Saves the object to the output path.

Method Detail

### saveTo

    public void saveTo(Storable object,
                       java.lang.String outputPath)
                throws StorageException

  Saves the object to the output path.

  Parameters:
    `object` - The object to save.
    `outputPath` - The path to save the object to.
  Throws:
    `StorageException` - If the save operation fails for any reason.

### loadFrom

    public Storable loadFrom(java.lang.String sourcePath)
                      throws StorageException

  Loads an object from the specified source path.

  Parameters:
    `sourcePath` - The path to load the object from.
  Returns:
    The object stored at the specified path.
  Throws:
    `StorageException` - If the load operation fails for any reason.

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