org.eclipse.jdt.launching.sourcelookup
Class LocalFileStorage
java.lang.Object
|
+--org.eclipse.core.runtime.PlatformObject
|
+--org.eclipse.jdt.launching.sourcelookup.LocalFileStorage
- All Implemented Interfaces:
- IAdaptable, IStorage
- public class LocalFileStorage
- extends PlatformObject
- implements IStorage
Implementation of storage for a local file
(java.io.File
).
This class may be instantiated; it is not intended to be subclassed.
- Since:
- 2.0
- See Also:
DirectorySourceLocation
,
IStorage
LocalFileStorage
public LocalFileStorage(File file)
- Constructs and returns storage for the given file.
- Parameters:
file
- a local file
getContents
public InputStream getContents()
throws CoreException
- Specified by:
getContents
in interface IStorage
- See Also:
IStorage.getContents()
getFullPath
public IPath getFullPath()
- Specified by:
getFullPath
in interface IStorage
- See Also:
IStorage.getFullPath()
getName
public String getName()
- Specified by:
getName
in interface IStorage
- See Also:
IStorage.getName()
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interface IStorage
- See Also:
IStorage.isReadOnly()
getFile
public File getFile()
- Returns the file asscoiated with this storage
- Returns:
- file
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.