Class FileFileLocation
java.lang.Object
org.fife.ui.rsyntaxtextarea.FileLocation
org.fife.ui.rsyntaxtextarea.FileFileLocation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longReturns the last time this file was modified, orTextEditorPane.LAST_MODIFIED_UNKNOWNif this value cannot be computed (such as for a remote file).Returns the full path to the file.Returns the name of the file.protected InputStreamOpens an input stream for reading from this file.protected OutputStreamOpens an output stream for writing this file.booleanisLocal()Always returnstrue.booleanSince file locations of this type are guaranteed to be local, this method returns whether the file exists.Methods inherited from class FileLocation
create, create, create, isRemote
-
Field Details
-
file
The file. This may or may not actually exist.
-
-
Constructor Details
-
FileFileLocation
-
-
Method Details
-
getActualLastModified
protected long getActualLastModified()Description copied from class:FileLocationReturns the last time this file was modified, orTextEditorPane.LAST_MODIFIED_UNKNOWNif this value cannot be computed (such as for a remote file).- Specified by:
getActualLastModifiedin classFileLocation- Returns:
- The last time this file was modified.
-
getFileFullPath
Returns the full path to the file.- Specified by:
getFileFullPathin classFileLocation- Returns:
- The full path to the file.
- See Also:
-
getFileName
Description copied from class:FileLocationReturns the name of the file.- Specified by:
getFileNamein classFileLocation- Returns:
- The name of the file.
- See Also:
-
getInputStream
Description copied from class:FileLocationOpens an input stream for reading from this file.- Specified by:
getInputStreamin classFileLocation- Returns:
- The input stream.
- Throws:
IOException- If the file does not exist, or some other IO error occurs.
-
getOutputStream
Description copied from class:FileLocationOpens an output stream for writing this file.- Specified by:
getOutputStreamin classFileLocation- Returns:
- An output stream.
- Throws:
IOException- If an IO error occurs.
-
isLocal
public boolean isLocal()Always returnstrue.- Specified by:
isLocalin classFileLocation- Returns:
truealways.- See Also:
-
isLocalAndExists
public boolean isLocalAndExists()Since file locations of this type are guaranteed to be local, this method returns whether the file exists.- Specified by:
isLocalAndExistsin classFileLocation- Returns:
- Whether this local file actually exists.
- See Also:
-