source: trunk/greenstone3-extensions/gs3build/src/org/greenstone/gsdl3/gs3build/metadata/METSFilePos.java@ 12188

Last change on this file since 12188 was 12188, checked in by kjdon, 18 years ago

Initial revision

  • Property svn:keywords set to Author Date Id Revision
File size: 906 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 long getModifiedDatestamp()
31 { return this.location.getModifiedDatestamp();
32 }
33
34 public String toString()
35 { return this.location.getLocation().toString();
36 }
37
38 public boolean equals(URL filePos)
39 { return this.location.equals(filePos);
40 }
41}
Note: See TracBrowser for help on using the repository browser.