org.ibisph.resource
Class VerifiedFileSystemID

java.lang.Object
  extended by org.ibisph.resource.AbstractSystemID
      extended by org.ibisph.resource.FileSystemID
          extended by org.ibisph.resource.VerifiedFileSystemID
All Implemented Interfaces:
java.io.Serializable, SystemID

public class VerifiedFileSystemID
extends FileSystemID

Verified file based System ID resource. Provides a confirmed system ID string based on a java.io.File object or a complete filename and path string which is used to open a file object.

Author:
Garth Braithwaite, STG
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ibisph.resource.AbstractSystemID
systemID
 
Constructor Summary
VerifiedFileSystemID(java.lang.String pathAndFilename)
           
VerifiedFileSystemID(java.lang.String contextPath, java.lang.String subPathAndFilename)
           
 
Method Summary
static java.lang.String toString(java.lang.String pathAndFilename)
          Helper that tries the specified path and filename as a file and if exists uses the URI object to convert to a system ID String.
 
Methods inherited from class org.ibisph.resource.FileSystemID
getFile
 
Methods inherited from class org.ibisph.resource.AbstractSystemID
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VerifiedFileSystemID

public VerifiedFileSystemID(java.lang.String pathAndFilename)

VerifiedFileSystemID

public VerifiedFileSystemID(java.lang.String contextPath,
                            java.lang.String subPathAndFilename)
Method Detail

toString

public static java.lang.String toString(java.lang.String pathAndFilename)
Helper that tries the specified path and filename as a file and if exists uses the URI object to convert to a system ID String.

Parameters:
pathAndFilename - Complete path and filename string to be verified (file exists) and converted to a system id string.
Returns:
Verified file system ID string. If not found, then null.