com.hp.hpl.jena.util
Class LocatorFile

java.lang.Object
  extended by com.hp.hpl.jena.util.LocatorFile
All Implemented Interfaces:
Locator

public class LocatorFile
extends Object
implements Locator

Location files in the filing system. A FileLocator can have a "current directory" - this is separate from any location mapping (see @link{LocationMapping}) as it applies only to files.

Version:
$Id: LocatorFile.java,v 1.1 2009-06-29 08:55:47 castagna Exp $
Author:
Andy Seaborne

Constructor Summary
LocatorFile(String dir)
           
 
Method Summary
 boolean equals(Object other)
           
 boolean exists(String filenameOrURI)
           
 String getName()
           
 int hashCode()
           
 TypedStream open(String filenameOrURI)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocatorFile

public LocatorFile(String dir)
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

exists

public boolean exists(String filenameOrURI)

open

public TypedStream open(String filenameOrURI)
Specified by:
open in interface Locator

getName

public String getName()
Specified by:
getName in interface Locator


Licenced under the Apache License, Version 2.0