xtas.resource
Class LocalFile
java.lang.Object
|
+--xtas.Resource
|
+--xtas.resource.LocalFile
- public class LocalFile
- extends Resource
Represents XML local file as XTAS resource
- Version:
- $Id: LocalFile.java,v 1.6 2003/04/17 14:13:59 geaz Exp $
Constructor Summary |
LocalFile(java.lang.String resourceId)
Creates resource as local file named resourceId |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalFile
public LocalFile(java.lang.String resourceId)
- Creates resource as local file named
resourceId
setContext
public void setContext(java.lang.Object context)
- Description copied from class:
Resource
- Initializes Resource's context (if any)
- Overrides:
setContext
in class Resource
load
public WellFormedUniFormTree load()
throws UniFormTransformationException,
java.io.IOException
- Loads XML from the local file
Will not validate...
- Overrides:
load
in class Resource
save
public void save(WellFormedUniFormTree tree)
throws java.io.IOException
- Description copied from class:
Resource
- Stores XML into some resource
- Overrides:
save
in class Resource
create
public void create(WellFormedUniFormTree initTree)
throws java.io.IOException
- Creates resource by Id
- Overrides:
create
in class Resource
drop
public void drop()
throws java.io.IOException
- drops resource
- Overrides:
drop
in class Resource