com.aptana.ide.editors.unified
Class FileSourceProvider

java.lang.Object
  extended by com.aptana.ide.editors.unified.FileSourceProvider
All Implemented Interfaces:
IFileSourceProvider

public class FileSourceProvider
extends java.lang.Object
implements IFileSourceProvider

For non-project based files. This is a non-opened file

Author:
Spike Washburn

Constructor Summary
FileSourceProvider(java.io.File file)
          FileSourceProvider
 
Method Summary
 int getLineOffset(int line)
          getLineOffset
 int getLineOfOffset(int offset)
          getLineOfOffset
 java.lang.String getSource()
          Returns the full source content for a file.
 int getSourceLength()
          Returns the character length of the source file.
 java.lang.String getSourceURI()
          Returns the full qualified source path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSourceProvider

public FileSourceProvider(java.io.File file)
FileSourceProvider

Parameters:
file -
Method Detail

getSource

public java.lang.String getSource()
                           throws java.io.IOException
Description copied from interface: IFileSourceProvider
Returns the full source content for a file.

Specified by:
getSource in interface IFileSourceProvider
Returns:
returns the source string
Throws:
java.io.IOException
See Also:
IFileSourceProvider.getSource()

getSourceLength

public int getSourceLength()
Description copied from interface: IFileSourceProvider
Returns the character length of the source file.

Specified by:
getSourceLength in interface IFileSourceProvider
Returns:
Returns the character length of the source file.
See Also:
IFileSourceProvider.getSourceLength()

getSourceURI

public java.lang.String getSourceURI()
Description copied from interface: IFileSourceProvider
Returns the full qualified source path.

Specified by:
getSourceURI in interface IFileSourceProvider
Returns:
Returns the full qualified source path.
See Also:
IFileSourceProvider.getSourceURI()

getLineOfOffset

public int getLineOfOffset(int offset)
Description copied from interface: IFileSourceProvider
getLineOfOffset

Specified by:
getLineOfOffset in interface IFileSourceProvider
Returns:
int
See Also:
IFileSourceProvider.getLineOfOffset(int)

getLineOffset

public int getLineOffset(int line)
Description copied from interface: IFileSourceProvider
getLineOffset

Specified by:
getLineOffset in interface IFileSourceProvider
Returns:
int
See Also:
IFileSourceProvider.getLineOffset(int)