TV-Browser 2.7.5 API

captureplugin
Class DeviceFileHandling

java.lang.Object
  extended by captureplugin.DeviceFileHandling

public class DeviceFileHandling
extends Object

Loads/Saves the Devices

Author:
bodum

Constructor Summary
DeviceFileHandling()
           
 
Method Summary
 void clearDirectory()
          Creates a empty Directory
 DeviceIf readDevice(String classname, String filename, String devname)
          Loads a Device
 String writeDevice(DeviceIf dev)
          Saves a Device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceFileHandling

public DeviceFileHandling()
Method Detail

clearDirectory

public void clearDirectory()
                    throws IOException
Creates a empty Directory

Throws:
IOException - Problems in delete operation

writeDevice

public String writeDevice(DeviceIf dev)
                   throws IOException
Saves a Device

Parameters:
dev - Device to Save
Returns:
Filename
Throws:
IOException - Problems reading the Device

readDevice

public DeviceIf readDevice(String classname,
                           String filename,
                           String devname)
                    throws IOException,
                           ClassNotFoundException
Loads a Device

Parameters:
classname - Driver-Classname
filename - Filename
devname - Name of the Device
Returns:
DeviceIf
Throws:
IOException - Problems while reading the device
ClassNotFoundException - Class creation problems

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)