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

## de.rico.editor.io
Class RoomIO

    java.lang.Object
      de.rico.editor.io.RoomIO

    public class RoomIO

extends java.lang.Object

This class can be used to export the current room to a file and to import a room from a file.

Author:
  Frank Bruns

Constructor Summary
`RoomIO(Room room, boolean forEditor)` Creates a new RoomIO object with the specified (empty) room object that is going to be filled or saved.

Method Summary
`void` | `exportRoom(java.lang.String path)` Saves the room information to the specified file.
`void` | `importRoom(java.lang.String path)` Loads the room information from the specified file.

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

Constructor Detail

### RoomIO

    public RoomIO(Room room,
                  boolean forEditor)

  Creates a new RoomIO object with the specified (empty) room object that is going to be filled or saved.

  Parameters:
    `room` - room object to operate on
    `forEditor` - is room going to be loaded into the editor? --> true=yes, false=no

Method Detail

### importRoom

    public void importRoom(java.lang.String path)

  Loads the room information from the specified file.

  Parameters:
    `path` - filepath + name of the file to load from

### exportRoom

    public void exportRoom(java.lang.String path)

  Saves the room information to the specified file.

  Parameters:
    `path` - filepath + name for the saved file

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