Last change
on this file since 8699 was 7465, checked in by cs025, 20 years ago |
Changes to cope with better file functionality; also proper handling of
Windows file paths with URLTools
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
906 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3.gs3build.metadata;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 | import java.net.URL;
|
---|
5 |
|
---|
6 | public 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.