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
|
Rev | Line | |
---|
[5800] | 1 | package org.greenstone.gsdl3.gs3build.metadata;
|
---|
| 2 |
|
---|
| 3 | import java.io.File;
|
---|
| 4 | import java.net.URL;
|
---|
| 5 |
|
---|
| 6 | public class METSFilePos
|
---|
| 7 | {
|
---|
[5945] | 8 | METSLocation location;
|
---|
[5800] | 9 |
|
---|
[5945] | 10 | public METSFilePos(File file) throws java.net.MalformedURLException
|
---|
| 11 | { this.location = new METSLocation(file);
|
---|
| 12 | }
|
---|
[5800] | 13 |
|
---|
[5945] | 14 | public METSFilePos(URL url)
|
---|
| 15 | { this.location = new METSLocation(url);
|
---|
| 16 | }
|
---|
[5800] | 17 |
|
---|
[5945] | 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 | }
|
---|
[5800] | 25 |
|
---|
[5945] | 26 | public String getType()
|
---|
| 27 | { return this.location.getType();
|
---|
| 28 | }
|
---|
[5800] | 29 |
|
---|
[7465] | 30 | public long getModifiedDatestamp()
|
---|
| 31 | { return this.location.getModifiedDatestamp();
|
---|
| 32 | }
|
---|
| 33 |
|
---|
[5945] | 34 | public String toString()
|
---|
| 35 | { return this.location.getLocation().toString();
|
---|
| 36 | }
|
---|
[5800] | 37 |
|
---|
[5945] | 38 | public boolean equals(URL filePos)
|
---|
| 39 | { return this.location.equals(filePos);
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.