Eclipse JDT
2.1

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

Constructor Summary
LocalFileStorage(File file)
          Constructs and returns storage for the given file.
 
Method Summary
 boolean equals(Object object)
           
 InputStream getContents()
           
 File getFile()
          Returns the file asscoiated with this storage
 IPath getFullPath()
           
 String getName()
           
 int hashCode()
           
 boolean isReadOnly()
           
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

LocalFileStorage

public LocalFileStorage(File file)
Constructs and returns storage for the given file.
Parameters:
file - a local file
Method Detail

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()

Eclipse JDT
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.