public class DeviceFileHandling extends Object
Constructor and Description |
---|
DeviceFileHandling() |
Modifier and Type | Method and Description |
---|---|
void |
clearDirectory()
Creates a empty Directory
|
DeviceIf |
readDevice(String classname,
String filename,
String devname)
Loads a Device
|
String |
writeDevice(DeviceIf dev)
Saves a Device
|
public void clearDirectory() throws IOException
IOException
- Problems in delete operationpublic String writeDevice(DeviceIf dev) throws IOException
dev
- Device to SaveIOException
- Problems reading the Devicepublic DeviceIf readDevice(String classname, String filename, String devname) throws IOException, ClassNotFoundException
classname
- Driver-Classnamefilename
- Filenamedevname
- Name of the DeviceIOException
- Problems while reading the deviceClassNotFoundException
- Class creation problemsTV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)