1 package uk.ac.vamsas.client.simpleclient;
4 import java.net.MalformedURLException;
7 * Vamsas Document URN for files understood by ArchiveReader and
8 * written by VamsasArchive.
9 * vdoc://{Absolute path to file}
13 public class ArchiveUrn extends uk.ac.vamsas.client.SessionUrn {
15 * a simple vamsas document urn prefix
17 public static String VAMSASDOCUMENT="vdoc";
19 TYPES.put(ArchiveUrn.VAMSASDOCUMENT, ArchiveUrn.class);
22 public ArchiveUrn(File docLocation) throws MalformedURLException {
23 super(VAMSASDOCUMENT, docLocation.getAbsoluteFile().toURL());
27 * TODO: LATER: think about this again.
28 * @return File(urn.getPath())
30 public File asFile() {
31 return new File(urn.getPath());
33 // TODO: add abstract 'handler' methods for resolving the URN to a particular class