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

## mauda
Class XMLFileAccess

    java.lang.Object
      mauda.XMLFileAccess

    public class XMLFileAccess

extends java.lang.Object

Allows access to java-generated XML-files.

Author:
  Markus Krebs

Constructor Summary
`XMLFileAccess()`

Method Summary
`static java.util.Vector` | `load(java.lang.String filename)` Loads an xml-file.
`static boolean` | `save(java.lang.String filename, java.util.Vector v)` Saves an xml-file.

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

Constructor Detail

### XMLFileAccess

    public XMLFileAccess()

Method Detail

### load

    public static java.util.Vector load(java.lang.String filename)

  Loads an xml-file. All contained objects of the file will be returned in a Vector. Comment: When the file contains only one object, it must be read from the Vector via `Vector.firstElement()`

  Parameters:
    `filename` - The filename of the xml-file
  Returns:
    Returns a Vector containing the objects of the file or null if an error occured

### save

    public static boolean save(java.lang.String filename,
                               java.util.Vector v)

  Saves an xml-file. All objects of the delivered vector will be saved. Comment: If only one object should be saved, a new Vector must be created, who contains this object.

  Parameters:
    `filename` - The filename of the xml-file
    `v` - The Vector to save into the file
  Returns:
    Returns true if the saving was ok, false otherwise

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