org.gcube.informationsystem.glitebridge.kimpl
Class KSite
java.lang.Object
org.gcube.informationsystem.glitebridge.resource.Site
org.gcube.informationsystem.glitebridge.kimpl.KSite
public class KSite
- extends Site
- Author:
- Luca Frosini (ISTI-CNR)
Constructor Summary |
KSite()
|
Method Summary |
java.io.InputStream |
getSchemaResource()
|
void |
load(java.io.Reader reader,
java.lang.String rootTag)
Deserialises a GCUBEResourceImpl which implements a GCUBEResource from a
serialisation. |
void |
store(java.io.Writer writer,
java.lang.String rootTag)
Serialises a GCUBEResourceImpl which implements a GCUBEResource . |
Methods inherited from class org.gcube.informationsystem.glitebridge.resource.Site |
getSite, setSite |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KSite
public KSite()
load
public void load(java.io.Reader reader,
java.lang.String rootTag)
throws java.lang.Exception
- Deserialises a
GCUBEResourceImpl
which implements a GCUBEResource
from a
serialisation.
- Parameters:
reader
- the Reader
.rootTag
- START and END TAG
- Throws:
java.lang.Exception
- if could not be deserialised.
store
public void store(java.io.Writer writer,
java.lang.String rootTag)
throws java.lang.Exception
- Serialises a
GCUBEResourceImpl
which implements a GCUBEResource
.
- Parameters:
writer
- the Writer
which gives access to the serialisation.rootTag
- START and END TAG
- Throws:
java.lang.Exception
- if the GCUBEResourceImpl
could not be serialised.
getSchemaResource
public java.io.InputStream getSchemaResource()
- Returns:
- InputStream