source: trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/METSFilePos.java@ 5945

Last change on this file since 5945 was 5945, checked in by cs025, 20 years ago

Extensive additions to metadata

  • Property svn:keywords set to Author Date Id Revision
File size: 815 bytes
Line 
1package org.greenstone.gsdl3.gs3build.metadata;
2
3import java.io.File;
4import java.net.URL;
5
6public class METSFilePos
7{
8 METSLocation location;
9
10 public METSFilePos(File file) throws java.net.MalformedURLException
11 { this.location = new METSLocation(file);
12 }
13
14 public METSFilePos(URL url)
15 { this.location = new METSLocation(url);
16 }
17
18 public METSFilePos(String locationType, String location) throws java.net.MalformedURLException
19 { this.location = new METSLocation(locationType, location);
20 }
21
22 public URL getLocation()
23 { return this.location.getLocation();
24 }
25
26 public String getType()
27 { return this.location.getType();
28 }
29
30 public String toString()
31 { return this.location.getLocation().toString();
32 }
33
34 public boolean equals(URL filePos)
35 { return this.location.equals(filePos);
36 }
37}
Note: See TracBrowser for help on using the repository browser.