com.aptana.ide.core.resources
Class LocalFileStorage

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by com.aptana.ide.core.resources.UniformResourceStorage
          extended by com.aptana.ide.core.resources.LocalFileStorage
All Implemented Interfaces:
org.eclipse.core.resources.IStorage, org.eclipse.core.runtime.IAdaptable

public class LocalFileStorage
extends UniformResourceStorage

Author:
Max Stepanov

Constructor Summary
LocalFileStorage(java.io.File file)
           
 
Method Summary
 java.io.InputStream getContents()
           
 java.io.File getFile()
          getFile
 org.eclipse.core.runtime.IPath getFullPath()
           
 java.lang.String getName()
           
 java.net.URI getURI()
          getURI
 boolean isReadOnly()
           
 
Methods inherited from class com.aptana.ide.core.resources.UniformResourceStorage
equals, getAdapter, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFileStorage

public LocalFileStorage(java.io.File file)
Parameters:
file -
Method Detail

getURI

public java.net.URI getURI()
Description copied from class: UniformResourceStorage
getURI

Specified by:
getURI in class UniformResourceStorage
Returns:
URI
See Also:
UniformResourceStorage.getURI()

getContents

public java.io.InputStream getContents()
                                throws org.eclipse.core.runtime.CoreException
Specified by:
getContents in interface org.eclipse.core.resources.IStorage
Overrides:
getContents in class UniformResourceStorage
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IStorage.getContents()

getFullPath

public org.eclipse.core.runtime.IPath getFullPath()
Specified by:
getFullPath in interface org.eclipse.core.resources.IStorage
Overrides:
getFullPath in class UniformResourceStorage
See Also:
IStorage.getFullPath()

getName

public java.lang.String getName()
Specified by:
getName in interface org.eclipse.core.resources.IStorage
Overrides:
getName in class UniformResourceStorage
See Also:
IStorage.getName()

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface org.eclipse.core.resources.IStorage
Overrides:
isReadOnly in class UniformResourceStorage
See Also:
IStorage.isReadOnly()

getFile

public java.io.File getFile()
getFile

Returns:
File