PageRenderTime 60ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/io/VFS.html

#
HTML | 1477 lines | 1326 code | 140 blank | 11 comment | 0 complexity | 66fffa2d938027991ce955cd01366e01 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0

Large files files are truncated, but you can click here to view the full file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:14:02 GMT-08:00 2008 -->
  6. <TITLE>
  7. VFS (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.io.VFS class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/VFS.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/UrlVFS.html" title="class in org.gjt.sp.jedit.io"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/VFS.DirectoryEntry.html" title="class in org.gjt.sp.jedit.io"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/io/VFS.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="VFS.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.io</FONT>
  66. <BR>
  67. Class VFS</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.io.VFS</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/io/FavoritesVFS.html" title="class in org.gjt.sp.jedit.io">FavoritesVFS</A>, <A HREF="../../../../../org/gjt/sp/jedit/io/FileRootsVFS.html" title="class in org.gjt.sp.jedit.io">FileRootsVFS</A>, <A HREF="../../../../../org/gjt/sp/jedit/io/FileVFS.html" title="class in org.gjt.sp.jedit.io">FileVFS</A>, <A HREF="../../../../../org/gjt/sp/jedit/io/UrlVFS.html" title="class in org.gjt.sp.jedit.io">UrlVFS</A></DD>
  74. </DL>
  75. <HR>
  76. <DL>
  77. <DT><PRE>public abstract class <B>VFS</B><DT>extends java.lang.Object</DL>
  78. </PRE>
  79. <P>
  80. A virtual filesystem implementation.<p>
  81. Plugins can provide virtual file systems by defining entries in their
  82. <code>services.xml</code> files like so:
  83. <pre>&lt;SERVICE CLASS="org.gjt.sp.jedit.io.VFS" NAME="<i>name</i>"&gt;
  84. new <i>MyVFS</i>();
  85. &lt;/SERVICE&gt;</pre>
  86. URLs of the form <code><i>name</i>:<i>path</i></code> will then be handled
  87. by the VFS named <code><i>name</i></code>.<p>
  88. See <A HREF="../../../../../org/gjt/sp/jedit/ServiceManager.html" title="class in org.gjt.sp.jedit"><CODE>ServiceManager</CODE></A> for details.<p>
  89. <h3>Session objects:</h3>
  90. A session is used to persist things like login information, any network
  91. sockets, etc. File system implementations that do not need this kind of
  92. persistence return a dummy object as a session.<p>
  93. Methods whose names are prefixed with "_" expect to be given a
  94. previously-obtained session object. A session must be obtained from the AWT
  95. thread in one of two ways:
  96. <ul>
  97. <li><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#createVFSSession(java.lang.String, java.awt.Component)"><CODE>createVFSSession(String,Component)</CODE></A></li>
  98. <li><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#showBrowseDialog(java.lang.Object[], java.awt.Component)"><CODE>showBrowseDialog(Object[],Component)</CODE></A></li>
  99. </ul>
  100. When done, the session must be disposed of using
  101. <A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_endVFSSession(java.lang.Object, java.awt.Component)"><CODE>_endVFSSession(Object,Component)</CODE></A>.<p>
  102. <h3>Thread safety:</h3>
  103. The following methods cannot be called from an I/O thread:
  104. <ul>
  105. <li><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#createVFSSession(java.lang.String, java.awt.Component)"><CODE>createVFSSession(String,Component)</CODE></A></li>
  106. <li><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#insert(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, java.lang.String)"><CODE>insert(View,Buffer,String)</CODE></A></li>
  107. <li><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#load(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, java.lang.String)"><CODE>load(View,Buffer,String)</CODE></A></li>
  108. <li><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#save(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, java.lang.String)"><CODE>save(View,Buffer,String)</CODE></A></li>
  109. <li><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#showBrowseDialog(java.lang.Object[], java.awt.Component)"><CODE>showBrowseDialog(Object[],Component)</CODE></A></li>
  110. </ul>
  111. All remaining methods are required to be thread-safe in subclasses.
  112. <h3>Implementing a VFS</h3>
  113. You can override as many or as few methods as you want. Make sure
  114. <A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getCapabilities()"><CODE>getCapabilities()</CODE></A> returns a value reflecting the functionality
  115. implemented by your VFS.
  116. <P>
  117. <P>
  118. <DL>
  119. <DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/io/VFSManager.html#getVFSForPath(java.lang.String)"><CODE>VFSManager.getVFSForPath(String)</CODE></A>,
  120. <A HREF="../../../../../org/gjt/sp/jedit/io/VFSManager.html#getVFSForProtocol(java.lang.String)"><CODE>VFSManager.getVFSForProtocol(String)</CODE></A></DL>
  121. <HR>
  122. <P>
  123. <!-- ======== NESTED CLASS SUMMARY ======== -->
  124. <A NAME="nested_class_summary"><!-- --></A>
  125. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  126. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  127. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  128. <B>Nested Class Summary</B></FONT></TH>
  129. </TR>
  130. <TR BGCOLOR="white" CLASS="TableRowColor">
  131. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  132. <CODE>static&nbsp;class</CODE></FONT></TD>
  133. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.DirectoryEntry.html" title="class in org.gjt.sp.jedit.io">VFS.DirectoryEntry</A></B></CODE>
  134. <BR>
  135. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <code>VFSFile</code> instead.</I></TD>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  139. <CODE>static&nbsp;class</CODE></FONT></TD>
  140. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.DirectoryEntryCompare.html" title="class in org.gjt.sp.jedit.io">VFS.DirectoryEntryCompare</A></B></CODE>
  141. <BR>
  142. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implementation of <CODE>Comparator</CODE>
  143. interface that compares <A HREF="../../../../../org/gjt/sp/jedit/io/VFS.DirectoryEntry.html" title="class in org.gjt.sp.jedit.io"><CODE>VFS.DirectoryEntry</CODE></A> instances.</TD>
  144. </TR>
  145. </TABLE>
  146. &nbsp;<!-- =========== FIELD SUMMARY =========== -->
  147. <A NAME="field_summary"><!-- --></A>
  148. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  149. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  150. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  151. <B>Field Summary</B></FONT></TH>
  152. </TR>
  153. <TR BGCOLOR="white" CLASS="TableRowColor">
  154. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  155. <CODE>static&nbsp;int</CODE></FONT></TD>
  156. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#BROWSE_CAP">BROWSE_CAP</A></B></CODE>
  157. <BR>
  158. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Browse capability</TD>
  159. </TR>
  160. <TR BGCOLOR="white" CLASS="TableRowColor">
  161. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  162. <CODE>static&nbsp;int</CODE></FONT></TD>
  163. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#CASE_INSENSITIVE_CAP">CASE_INSENSITIVE_CAP</A></B></CODE>
  164. <BR>
  165. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Case insensitive file system capability.</TD>
  166. </TR>
  167. <TR BGCOLOR="white" CLASS="TableRowColor">
  168. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  169. <CODE>static&nbsp;int</CODE></FONT></TD>
  170. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#DELETE_CAP">DELETE_CAP</A></B></CODE>
  171. <BR>
  172. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete file capability.</TD>
  173. </TR>
  174. <TR BGCOLOR="white" CLASS="TableRowColor">
  175. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  176. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  177. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#EA_MODIFIED">EA_MODIFIED</A></B></CODE>
  178. <BR>
  179. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File last modified date.</TD>
  180. </TR>
  181. <TR BGCOLOR="white" CLASS="TableRowColor">
  182. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  183. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  184. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#EA_SIZE">EA_SIZE</A></B></CODE>
  185. <BR>
  186. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File size.</TD>
  187. </TR>
  188. <TR BGCOLOR="white" CLASS="TableRowColor">
  189. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  190. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  191. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#EA_STATUS">EA_STATUS</A></B></CODE>
  192. <BR>
  193. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File status (read only, read write, etc).</TD>
  194. </TR>
  195. <TR BGCOLOR="white" CLASS="TableRowColor">
  196. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  197. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  198. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#EA_TYPE">EA_TYPE</A></B></CODE>
  199. <BR>
  200. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File type.</TD>
  201. </TR>
  202. <TR BGCOLOR="white" CLASS="TableRowColor">
  203. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  204. <CODE>static&nbsp;int</CODE></FONT></TD>
  205. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#IOBUFSIZE">IOBUFSIZE</A></B></CODE>
  206. <BR>
  207. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  208. </TR>
  209. <TR BGCOLOR="white" CLASS="TableRowColor">
  210. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  211. <CODE>static&nbsp;int</CODE></FONT></TD>
  212. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#LOW_LATENCY_CAP">LOW_LATENCY_CAP</A></B></CODE>
  213. <BR>
  214. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Low latency capability.</TD>
  215. </TR>
  216. <TR BGCOLOR="white" CLASS="TableRowColor">
  217. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  218. <CODE>static&nbsp;int</CODE></FONT></TD>
  219. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#MKDIR_CAP">MKDIR_CAP</A></B></CODE>
  220. <BR>
  221. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make directory capability.</TD>
  222. </TR>
  223. <TR BGCOLOR="white" CLASS="TableRowColor">
  224. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  225. <CODE>static&nbsp;int</CODE></FONT></TD>
  226. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#READ_CAP">READ_CAP</A></B></CODE>
  227. <BR>
  228. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read capability.</TD>
  229. </TR>
  230. <TR BGCOLOR="white" CLASS="TableRowColor">
  231. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  232. <CODE>static&nbsp;int</CODE></FONT></TD>
  233. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#RENAME_CAP">RENAME_CAP</A></B></CODE>
  234. <BR>
  235. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rename file capability.</TD>
  236. </TR>
  237. <TR BGCOLOR="white" CLASS="TableRowColor">
  238. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  239. <CODE>static&nbsp;int</CODE></FONT></TD>
  240. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#WRITE_CAP">WRITE_CAP</A></B></CODE>
  241. <BR>
  242. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write capability.</TD>
  243. </TR>
  244. </TABLE>
  245. &nbsp;
  246. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  247. <A NAME="constructor_summary"><!-- --></A>
  248. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  249. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  250. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  251. <B>Constructor Summary</B></FONT></TH>
  252. </TR>
  253. <TR BGCOLOR="white" CLASS="TableRowColor">
  254. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  255. <CODE>protected </CODE></FONT></TD>
  256. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#VFS(java.lang.String)">VFS</A></B>(java.lang.String&nbsp;name)</CODE>
  257. <BR>
  258. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use the form where the constructor takes a capability
  259. list.</I></TD>
  260. </TR>
  261. <TR BGCOLOR="white" CLASS="TableRowColor">
  262. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  263. <CODE>protected </CODE></FONT></TD>
  264. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#VFS(java.lang.String, int)">VFS</A></B>(java.lang.String&nbsp;name,
  265. int&nbsp;caps)</CODE>
  266. <BR>
  267. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new virtual filesystem.</TD>
  268. </TR>
  269. <TR BGCOLOR="white" CLASS="TableRowColor">
  270. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  271. <CODE>protected </CODE></FONT></TD>
  272. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#VFS(java.lang.String, int, java.lang.String[])">VFS</A></B>(java.lang.String&nbsp;name,
  273. int&nbsp;caps,
  274. java.lang.String[]&nbsp;extAttrs)</CODE>
  275. <BR>
  276. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new virtual filesystem.</TD>
  277. </TR>
  278. </TABLE>
  279. &nbsp;
  280. <!-- ========== METHOD SUMMARY =========== -->
  281. <A NAME="method_summary"><!-- --></A>
  282. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  283. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  284. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  285. <B>Method Summary</B></FONT></TH>
  286. </TR>
  287. <TR BGCOLOR="white" CLASS="TableRowColor">
  288. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  289. <CODE>&nbsp;void</CODE></FONT></TD>
  290. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_backup(java.lang.Object, java.lang.String, java.awt.Component)">_backup</A></B>(java.lang.Object&nbsp;session,
  291. java.lang.String&nbsp;path,
  292. java.awt.Component&nbsp;comp)</CODE>
  293. <BR>
  294. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Backs up the specified file.</TD>
  295. </TR>
  296. <TR BGCOLOR="white" CLASS="TableRowColor">
  297. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  298. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  299. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_canonPath(java.lang.Object, java.lang.String, java.awt.Component)">_canonPath</A></B>(java.lang.Object&nbsp;session,
  300. java.lang.String&nbsp;path,
  301. java.awt.Component&nbsp;comp)</CODE>
  302. <BR>
  303. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the canonical form of the specified path name.</TD>
  304. </TR>
  305. <TR BGCOLOR="white" CLASS="TableRowColor">
  306. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  307. <CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
  308. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_createInputStream(java.lang.Object, java.lang.String, boolean, java.awt.Component)">_createInputStream</A></B>(java.lang.Object&nbsp;session,
  309. java.lang.String&nbsp;path,
  310. boolean&nbsp;ignoreErrors,
  311. java.awt.Component&nbsp;comp)</CODE>
  312. <BR>
  313. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an input stream.</TD>
  314. </TR>
  315. <TR BGCOLOR="white" CLASS="TableRowColor">
  316. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  317. <CODE>&nbsp;java.io.OutputStream</CODE></FONT></TD>
  318. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_createOutputStream(java.lang.Object, java.lang.String, java.awt.Component)">_createOutputStream</A></B>(java.lang.Object&nbsp;session,
  319. java.lang.String&nbsp;path,
  320. java.awt.Component&nbsp;comp)</CODE>
  321. <BR>
  322. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an output stream.</TD>
  323. </TR>
  324. <TR BGCOLOR="white" CLASS="TableRowColor">
  325. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  326. <CODE>&nbsp;boolean</CODE></FONT></TD>
  327. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_delete(java.lang.Object, java.lang.String, java.awt.Component)">_delete</A></B>(java.lang.Object&nbsp;session,
  328. java.lang.String&nbsp;path,
  329. java.awt.Component&nbsp;comp)</CODE>
  330. <BR>
  331. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deletes the specified URL.</TD>
  332. </TR>
  333. <TR BGCOLOR="white" CLASS="TableRowColor">
  334. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  335. <CODE>&nbsp;void</CODE></FONT></TD>
  336. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_endVFSSession(java.lang.Object, java.awt.Component)">_endVFSSession</A></B>(java.lang.Object&nbsp;session,
  337. java.awt.Component&nbsp;comp)</CODE>
  338. <BR>
  339. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finishes the specified VFS session.</TD>
  340. </TR>
  341. <TR BGCOLOR="white" CLASS="TableRowColor">
  342. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  343. <CODE>&nbsp;void</CODE></FONT></TD>
  344. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_finishTwoStageSave(java.lang.Object, org.gjt.sp.jedit.Buffer, java.lang.String, java.awt.Component)">_finishTwoStageSave</A></B>(java.lang.Object&nbsp;session,
  345. <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
  346. java.lang.String&nbsp;path,
  347. java.awt.Component&nbsp;comp)</CODE>
  348. <BR>
  349. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called after a file has been saved and we use twoStageSave (first saving to
  350. another file).</TD>
  351. </TR>
  352. <TR BGCOLOR="white" CLASS="TableRowColor">
  353. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  354. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/VFS.DirectoryEntry.html" title="class in org.gjt.sp.jedit.io">VFS.DirectoryEntry</A></CODE></FONT></TD>
  355. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_getDirectoryEntry(java.lang.Object, java.lang.String, java.awt.Component)">_getDirectoryEntry</A></B>(java.lang.Object&nbsp;session,
  356. java.lang.String&nbsp;path,
  357. java.awt.Component&nbsp;comp)</CODE>
  358. <BR>
  359. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <code>_getFile()</code> instead.</I></TD>
  360. </TR>
  361. <TR BGCOLOR="white" CLASS="TableRowColor">
  362. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  363. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/VFSFile.html" title="class in org.gjt.sp.jedit.io">VFSFile</A></CODE></FONT></TD>
  364. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_getFile(java.lang.Object, java.lang.String, java.awt.Component)">_getFile</A></B>(java.lang.Object&nbsp;session,
  365. java.lang.String&nbsp;path,
  366. java.awt.Component&nbsp;comp)</CODE>
  367. <BR>
  368. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified directory entry.</TD>
  369. </TR>
  370. <TR BGCOLOR="white" CLASS="TableRowColor">
  371. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  372. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/VFS.DirectoryEntry.html" title="class in org.gjt.sp.jedit.io">VFS.DirectoryEntry</A>[]</CODE></FONT></TD>
  373. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_listDirectory(java.lang.Object, java.lang.String, java.awt.Component)">_listDirectory</A></B>(java.lang.Object&nbsp;session,
  374. java.lang.String&nbsp;directory,
  375. java.awt.Component&nbsp;comp)</CODE>
  376. <BR>
  377. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <code>_listFiles()</code> instead.</I></TD>
  378. </TR>
  379. <TR BGCOLOR="white" CLASS="TableRowColor">
  380. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  381. <CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
  382. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_listDirectory(java.lang.Object, java.lang.String, java.lang.String, boolean, java.awt.Component)">_listDirectory</A></B>(java.lang.Object&nbsp;session,
  383. java.lang.String&nbsp;directory,
  384. java.lang.String&nbsp;glob,
  385. boolean&nbsp;recursive,
  386. java.awt.Component&nbsp;comp)</CODE>
  387. <BR>
  388. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convinience method that matches file names against globs, and can
  389. optionally list the directory recursively.</TD>
  390. </TR>
  391. <TR BGCOLOR="white" CLASS="TableRowColor">
  392. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  393. <CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
  394. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_listDirectory(java.lang.Object, java.lang.String, java.lang.String, boolean, java.awt.Component, boolean, boolean)">_listDirectory</A></B>(java.lang.Object&nbsp;session,
  395. java.lang.String&nbsp;directory,
  396. java.lang.String&nbsp;glob,
  397. boolean&nbsp;recursive,
  398. java.awt.Component&nbsp;comp,
  399. boolean&nbsp;skipBinary,
  400. boolean&nbsp;skipHidden)</CODE>
  401. <BR>
  402. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convinience method that matches file names against globs, and can
  403. optionally list the directory recursively.</TD>
  404. </TR>
  405. <TR BGCOLOR="white" CLASS="TableRowColor">
  406. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  407. <CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
  408. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_listDirectory(java.lang.Object, java.lang.String, org.gjt.sp.jedit.io.VFSFileFilter, boolean, java.awt.Component, boolean, boolean)">_listDirectory</A></B>(java.lang.Object&nbsp;session,
  409. java.lang.String&nbsp;directory,
  410. <A HREF="../../../../../org/gjt/sp/jedit/io/VFSFileFilter.html" title="interface in org.gjt.sp.jedit.io">VFSFileFilter</A>&nbsp;filter,
  411. boolean&nbsp;recursive,
  412. java.awt.Component&nbsp;comp,
  413. boolean&nbsp;skipBinary,
  414. boolean&nbsp;skipHidden)</CODE>
  415. <BR>
  416. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convinience method that filters the directory listing
  417. according to a filter, and can optionally list the directory
  418. recursively.</TD>
  419. </TR>
  420. <TR BGCOLOR="white" CLASS="TableRowColor">
  421. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  422. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/io/VFSFile.html" title="class in org.gjt.sp.jedit.io">VFSFile</A>[]</CODE></FONT></TD>
  423. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_listFiles(java.lang.Object, java.lang.String, java.awt.Component)">_listFiles</A></B>(java.lang.Object&nbsp;session,
  424. java.lang.String&nbsp;directory,
  425. java.awt.Component&nbsp;comp)</CODE>
  426. <BR>
  427. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lists the specified directory.</TD>
  428. </TR>
  429. <TR BGCOLOR="white" CLASS="TableRowColor">
  430. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  431. <CODE>&nbsp;boolean</CODE></FONT></TD>
  432. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_mkdir(java.lang.Object, java.lang.String, java.awt.Component)">_mkdir</A></B>(java.lang.Object&nbsp;session,
  433. java.lang.String&nbsp;directory,
  434. java.awt.Component&nbsp;comp)</CODE>
  435. <BR>
  436. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new directory with the specified URL.</TD>
  437. </TR>
  438. <TR BGCOLOR="white" CLASS="TableRowColor">
  439. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  440. <CODE>&nbsp;boolean</CODE></FONT></TD>
  441. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_rename(java.lang.Object, java.lang.String, java.lang.String, java.awt.Component)">_rename</A></B>(java.lang.Object&nbsp;session,
  442. java.lang.String&nbsp;from,
  443. java.lang.String&nbsp;to,
  444. java.awt.Component&nbsp;comp)</CODE>
  445. <BR>
  446. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renames the specified URL.</TD>
  447. </TR>
  448. <TR BGCOLOR="white" CLASS="TableRowColor">
  449. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  450. <CODE>&nbsp;void</CODE></FONT></TD>
  451. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#_saveComplete(java.lang.Object, org.gjt.sp.jedit.Buffer, java.lang.String, java.awt.Component)">_saveComplete</A></B>(java.lang.Object&nbsp;session,
  452. <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
  453. java.lang.String&nbsp;path,
  454. java.awt.Component&nbsp;comp)</CODE>
  455. <BR>
  456. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called after a file has been saved.</TD>
  457. </TR>
  458. <TR BGCOLOR="white" CLASS="TableRowColor">
  459. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  460. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  461. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#constructPath(java.lang.String, java.lang.String)">constructPath</A></B>(java.lang.String&nbsp;parent,
  462. java.lang.String&nbsp;path)</CODE>
  463. <BR>
  464. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a path from the specified directory and
  465. file name component.</TD>
  466. </TR>
  467. <TR BGCOLOR="white" CLASS="TableRowColor">
  468. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  469. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  470. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#copy(org.gjt.sp.util.ProgressObserver, java.lang.String, java.lang.String, java.awt.Component, boolean)">copy</A></B>(<A HREF="../../../../../org/gjt/sp/util/ProgressObserver.html" title="interface in org.gjt.sp.util">ProgressObserver</A>&nbsp;progress,
  471. java.lang.String&nbsp;sourcePath,
  472. java.lang.String&nbsp;targetPath,
  473. java.awt.Component&nbsp;comp,
  474. boolean&nbsp;canStop)</CODE>
  475. <BR>
  476. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy a file to another using VFS.</TD>
  477. </TR>
  478. <TR BGCOLOR="white" CLASS="TableRowColor">
  479. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  480. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  481. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#copy(org.gjt.sp.util.ProgressObserver, org.gjt.sp.jedit.io.VFS, java.lang.Object, java.lang.String, org.gjt.sp.jedit.io.VFS, java.lang.Object, java.lang.String, java.awt.Component, boolean)">copy</A></B>(<A HREF="../../../../../org/gjt/sp/util/ProgressObserver.html" title="interface in org.gjt.sp.util">ProgressObserver</A>&nbsp;progress,
  482. <A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html" title="class in org.gjt.sp.jedit.io">VFS</A>&nbsp;sourceVFS,
  483. java.lang.Object&nbsp;sourceSession,
  484. java.lang.String&nbsp;sourcePath,
  485. <A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html" title="class in org.gjt.sp.jedit.io">VFS</A>&nbsp;targetVFS,
  486. java.lang.Object&nbsp;targetSession,
  487. java.lang.String&nbsp;targetPath,
  488. java.awt.Component&nbsp;comp,
  489. boolean&nbsp;canStop)</CODE>
  490. <BR>
  491. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy a file to another using VFS.</TD>
  492. </TR>
  493. <TR BGCOLOR="white" CLASS="TableRowColor">
  494. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  495. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  496. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#createVFSSession(java.lang.String, java.awt.Component)">createVFSSession</A></B>(java.lang.String&nbsp;path,
  497. java.awt.Component&nbsp;comp)</CODE>
  498. <BR>
  499. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a VFS session.</TD>
  500. </TR>
  501. <TR BGCOLOR="white" CLASS="TableRowColor">
  502. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  503. <CODE>&nbsp;int</CODE></FONT></TD>
  504. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getCapabilities()">getCapabilities</A></B>()</CODE>
  505. <BR>
  506. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the capabilities of this VFS.</TD>
  507. </TR>
  508. <TR BGCOLOR="white" CLASS="TableRowColor">
  509. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  510. <CODE>static&nbsp;java.awt.Color</CODE></FONT></TD>
  511. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getDefaultColorFor(java.lang.String)">getDefaultColorFor</A></B>(java.lang.String&nbsp;name)</CODE>
  512. <BR>
  513. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns color of the specified file name, by matching it against
  514. user-specified regular expressions.</TD>
  515. </TR>
  516. <TR BGCOLOR="white" CLASS="TableRowColor">
  517. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  518. <CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
  519. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getExtendedAttributes()">getExtendedAttributes</A></B>()</CODE>
  520. <BR>
  521. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the extended attributes supported by this VFS.</TD>
  522. </TR>
  523. <TR BGCOLOR="white" CLASS="TableRowColor">
  524. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  525. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  526. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getFileName(java.lang.String)">getFileName</A></B>(java.lang.String&nbsp;path)</CODE>
  527. <BR>
  528. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the file name component of the specified path.</TD>
  529. </TR>
  530. <TR BGCOLOR="white" CLASS="TableRowColor">
  531. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  532. <CODE>&nbsp;char</CODE></FONT></TD>
  533. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getFileSeparator()">getFileSeparator</A></B>()</CODE>
  534. <BR>
  535. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the file separator used by this VFS.</TD>
  536. </TR>
  537. <TR BGCOLOR="white" CLASS="TableRowColor">
  538. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  539. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  540. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getName()">getName</A></B>()</CODE>
  541. <BR>
  542. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns this VFS's name.</TD>
  543. </TR>
  544. <TR BGCOLOR="white" CLASS="TableRowColor">
  545. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  546. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  547. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getParentOfPath(java.lang.String)">getParentOfPath</A></B>(java.lang.String&nbsp;path)</CODE>
  548. <BR>
  549. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the parent of the specified path.</TD>
  550. </TR>
  551. <TR BGCOLOR="white" CLASS="TableRowColor">
  552. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  553. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  554. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#getTwoStageSaveName(java.lang.String)">getTwoStageSaveName</A></B>(java.lang.String&nbsp;path)</CODE>
  555. <BR>
  556. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a temporary file name based on the given path.</TD>
  557. </TR>
  558. <TR BGCOLOR="white" CLASS="TableRowColor">
  559. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  560. <CODE>&nbsp;boolean</CODE></FONT></TD>
  561. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#insert(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, java.lang.String)">insert</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
  562. <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
  563. java.lang.String&nbsp;path)</CODE>
  564. <BR>
  565. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a file into the specified buffer.</TD>
  566. </TR>
  567. <TR BGCOLOR="white" CLASS="TableRowColor">
  568. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  569. <CODE>&nbsp;boolean</CODE></FONT></TD>
  570. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#isMarkersFileSupported()">isMarkersFileSupported</A></B>()</CODE>
  571. <BR>
  572. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if an additional markers file can be saved by this VFS.</TD>
  573. </TR>
  574. <TR BGCOLOR="white" CLASS="TableRowColor">
  575. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  576. <CODE>&nbsp;boolean</CODE></FONT></TD>
  577. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#load(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, java.lang.String)">load</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
  578. <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
  579. java.lang.String&nbsp;path)</CODE>
  580. <BR>
  581. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads the specified buffer.</TD>
  582. </TR>
  583. <TR BGCOLOR="white" CLASS="TableRowColor">
  584. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  585. <CODE>&nbsp;void</CODE></FONT></TD>
  586. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#reloadDirectory(java.lang.String)">reloadDirectory</A></B>(java.lang.String&nbsp;path)</CODE>
  587. <BR>
  588. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called before a directory is reloaded by the file system browser.</TD>
  589. </TR>
  590. <TR BGCOLOR="white" CLASS="TableRowColor">
  591. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  592. <CODE>&nbsp;boolean</CODE></FONT></TD>
  593. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#save(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, java.lang.String)">save</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
  594. <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
  595. java.lang.String&nbsp;path)</CODE>
  596. <BR>
  597. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the specifies buffer.</TD>
  598. </TR>
  599. <TR BGCOLOR="white" CLASS="TableRowColor">
  600. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  601. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  602. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/io/VFS.html#showBrowseDialog(java.lang.Object[], java.awt.Component)">showBrowseDialog</A></B>(java.lang.Object[]&nbsp;session,
  603. java.awt.Component&nbsp;comp)</CODE>
  604. <BR>
  605. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This function is not used in the jEdit core anymore,
  606. so it doesn't have to be provided anymore. If you want
  607. to use it for another purpose like in the FTP plugin,
  608. feel free to do so.</I></TD>
  609. </TR>
  610. </TABLE>
  611. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  612. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  613. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  614. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  615. </TR>
  616. <TR BGCOLOR="white" CLASS="TableRowColor">
  617. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  618. </TR>
  619. </TABLE>
  620. &nbsp;
  621. <P>
  622. <!-- ============ FIELD DETAIL =========== -->
  623. <A NAME="field_detail"><!-- --></A>
  624. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  625. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  626. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  627. <B>Field Detail</B></FONT></TH>
  628. </TR>
  629. </TABLE>
  630. <A NAME="READ_CAP"><!-- --></A><H3>
  631. READ_CAP</H3>
  632. <PRE>
  633. public static final int <B>READ_CAP</B></PRE>
  634. <DL>
  635. <DD>Read capability.
  636. <P>
  637. <DL>
  638. <DT><B>Since:</B></DT>
  639. <DD>jEdit 2.6pre2</DD>
  640. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.READ_CAP">Constant Field Values</A></DL>
  641. </DL>
  642. <HR>
  643. <A NAME="WRITE_CAP"><!-- --></A><H3>
  644. WRITE_CAP</H3>
  645. <PRE>
  646. public static final int <B>WRITE_CAP</B></PRE>
  647. <DL>
  648. <DD>Write capability.
  649. <P>
  650. <DL>
  651. <DT><B>Since:</B></DT>
  652. <DD>jEdit 2.6pre2</DD>
  653. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.WRITE_CAP">Constant Field Values</A></DL>
  654. </DL>
  655. <HR>
  656. <A NAME="BROWSE_CAP"><!-- --></A><H3>
  657. BROWSE_CAP</H3>
  658. <PRE>
  659. public static final int <B>BROWSE_CAP</B></PRE>
  660. <DL>
  661. <DD>Browse capability
  662. <P>
  663. <DL>
  664. <DT><B>Since:</B></DT>
  665. <DD>jEdit 4.3pre11
  666. This was the official API for adding items to a file
  667. system browser's <b>Plugins</b> menu in jEdit 4.1 and earlier. In
  668. jEdit 4.2, there is a different way of doing this, you must provide
  669. a <code>browser.actions.xml</code> file in your plugin JAR, and
  670. define <code>plugin.<i>class</i>.browser-menu-item</code>
  671. or <code>plugin.<i>class</i>.browser-menu</code> properties.
  672. See <A HREF="../../../../../org/gjt/sp/jedit/EditPlugin.html" title="class in org.gjt.sp.jedit"><CODE>EditPlugin</CODE></A> for details.</DD>
  673. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.BROWSE_CAP">Constant Field Values</A></DL>
  674. </DL>
  675. <HR>
  676. <A NAME="DELETE_CAP"><!-- --></A><H3>
  677. DELETE_CAP</H3>
  678. <PRE>
  679. public static final int <B>DELETE_CAP</B></PRE>
  680. <DL>
  681. <DD>Delete file capability.
  682. <P>
  683. <DL>
  684. <DT><B>Since:</B></DT>
  685. <DD>jEdit 2.6pre2</DD>
  686. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.DELETE_CAP">Constant Field Values</A></DL>
  687. </DL>
  688. <HR>
  689. <A NAME="RENAME_CAP"><!-- --></A><H3>
  690. RENAME_CAP</H3>
  691. <PRE>
  692. public static final int <B>RENAME_CAP</B></PRE>
  693. <DL>
  694. <DD>Rename file capability.
  695. <P>
  696. <DL>
  697. <DT><B>Since:</B></DT>
  698. <DD>jEdit 2.6pre2</DD>
  699. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.RENAME_CAP">Constant Field Values</A></DL>
  700. </DL>
  701. <HR>
  702. <A NAME="MKDIR_CAP"><!-- --></A><H3>
  703. MKDIR_CAP</H3>
  704. <PRE>
  705. public static final int <B>MKDIR_CAP</B></PRE>
  706. <DL>
  707. <DD>Make directory capability.
  708. <P>
  709. <DL>
  710. <DT><B>Since:</B></DT>
  711. <DD>jEdit 2.6pre2</DD>
  712. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.MKDIR_CAP">Constant Field Values</A></DL>
  713. </DL>
  714. <HR>
  715. <A NAME="LOW_LATENCY_CAP"><!-- --></A><H3>
  716. LOW_LATENCY_CAP</H3>
  717. <PRE>
  718. public static final int <B>LOW_LATENCY_CAP</B></PRE>
  719. <DL>
  720. <DD>Low latency capability. If this is not set, then a confirm dialog
  721. will be shown before doing a directory search in this VFS.
  722. <P>
  723. <DL>
  724. <DT><B>Since:</B></DT>
  725. <DD>jEdit 4.1pre1</DD>
  726. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.LOW_LATENCY_CAP">Constant Field Values</A></DL>
  727. </DL>
  728. <HR>
  729. <A NAME="CASE_INSENSITIVE_CAP"><!-- --></A><H3>
  730. CASE_INSENSITIVE_CAP</H3>
  731. <PRE>
  732. public static final int <B>CASE_INSENSITIVE_CAP</B></PRE>
  733. <DL>
  734. <DD>Case insensitive file system capability.
  735. <P>
  736. <DL>
  737. <DT><B>Since:</B></DT>
  738. <DD>jEdit 4.1pre1</DD>
  739. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.CASE_INSENSITIVE_CAP">Constant Field Values</A></DL>
  740. </DL>
  741. <HR>
  742. <A NAME="EA_TYPE"><!-- --></A><H3>
  743. EA_TYPE</H3>
  744. <PRE>
  745. public static final java.lang.String <B>EA_TYPE</B></PRE>
  746. <DL>
  747. <DD>File type.
  748. <P>
  749. <DL>
  750. <DT><B>Since:</B></DT>
  751. <DD>jEdit 4.2pre1</DD>
  752. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.EA_TYPE">Constant Field Values</A></DL>
  753. </DL>
  754. <HR>
  755. <A NAME="EA_STATUS"><!-- --></A><H3>
  756. EA_STATUS</H3>
  757. <PRE>
  758. public static final java.lang.String <B>EA_STATUS</B></PRE>
  759. <DL>
  760. <DD>File status (read only, read write, etc).
  761. <P>
  762. <DL>
  763. <DT><B>Since:</B></DT>
  764. <DD>jEdit 4.2pre1</DD>
  765. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.EA_STATUS">Constant Field Values</A></DL>
  766. </DL>
  767. <HR>
  768. <A NAME="EA_SIZE"><!-- --></A><H3>
  769. EA_SIZE</H3>
  770. <PRE>
  771. public static final java.lang.String <B>EA_SIZE</B></PRE>
  772. <DL>
  773. <DD>File size.
  774. <P>
  775. <DL>
  776. <DT><B>Since:</B></DT>
  777. <DD>jEdit 4.2pre1</DD>
  778. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.EA_SIZE">Constant Field Values</A></DL>
  779. </DL>
  780. <HR>
  781. <A NAME="EA_MODIFIED"><!-- --></A><H3>
  782. EA_MODIFIED</H3>
  783. <PRE>
  784. public static final java.lang.String <B>EA_MODIFIED</B></PRE>
  785. <DL>
  786. <DD>File last modified date.
  787. <P>
  788. <DL>
  789. <DT><B>Since:</B></DT>
  790. <DD>jEdit 4.2pre1</DD>
  791. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.io.VFS.EA_MODIFIED">Constant Field Values</A></DL>
  792. </DL>
  793. <HR>
  794. <A NAME="IOBUFSIZE"><!-- --></A><H3>
  795. IOBUFSIZE</H3>
  796. <PRE>
  797. public static int <B>IOBUFSIZE</B></PRE>
  798. <DL>
  799. <DL>
  800. </DL>
  801. </DL>
  802. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  803. <A NAME="constructor_detail"><!-- --></A>
  804. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  805. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  806. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  807. <B>Constructor Detail</B></FONT></TH>
  808. </TR>
  809. </TABLE>
  810. <A NAME="VFS(java.lang.String)"><!-- --></A><H3>
  811. VFS</H3>
  812. <PRE>
  813. <FONT SIZE="-1">@Deprecated
  814. </FONT>protected <B>VFS</B>(java.lang.String&nbsp;name)</PRE>
  815. <DL>
  816. <DD><B>Deprecated.</B>&nbsp;<I>Use the form where the constructor takes a capability
  817. list.</I>
  818. <P>
  819. </DL>
  820. <HR>
  821. <A NAME="VFS(java.lang.String, int)"><!-- --></A><H3>
  822. VFS</H3>
  823. <PRE>
  824. protected <B>VFS</B>(java.lang.String&nbsp;name,
  825. int&nbsp;caps)</PRE>
  826. <DL>
  827. <DD>Creates a new virtual filesystem.
  828. <P>
  829. <DL>
  830. <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name<DD><CODE>caps</CODE> - The capabilities</DL>
  831. </DL>
  832. <HR>
  833. <A NAME="VFS(java.lang.String, int, java.lang.String[])"><!-- --></A><H3>
  834. VFS</H3>
  835. <PRE>
  836. protected <B>VFS</B>(java.lang.String&nbsp;name,
  837. int&nbsp;caps,
  838. java.lang.String[]&nbsp;extAttrs)</PRE>
  839. <DL>
  840. <DD>Creates a new virtual filesystem.
  841. <P>
  842. <DL>
  843. <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name<DD><CODE>caps</CODE> - The capabilities<DD><CODE>extAttrs</CODE> - The extended attributes<DT><B>Since:</B></DT>
  844. <DD>jEdit 4.2pre1</DD>
  845. </DL>
  846. </DL>
  847. <!-- ============ METHOD DETAIL ========== -->
  848. <A NAME="method_detail"><!-- --></A>
  849. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  850. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  851. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  852. <B>Method Detail</B></FONT></TH>
  853. </TR>
  854. </TABLE>
  855. <A NAME="getName()"><!-- --></A><H3>
  856. getName</H3>
  857. <PRE>
  858. public java.lang.String <B>getName</B>()</PRE>
  859. <DL>
  860. <DD>Returns this VFS's name. The name is used to obtain the
  861. label stored in the <code>vfs.<i>name</i>.label</code>
  862. property.
  863. <P>
  864. <DD><DL>
  865. </DL>
  866. </DD>
  867. </DL>
  868. <HR>
  869. <A NAME="getCapabilities()"><!-- --></A><H3>
  870. getCapabilities</H3>
  871. <PRE>
  872. public int <B>getCapabilities</B>()</PRE>
  873. <DL>
  874. <DD>Returns the capabilities of this VFS.
  875. <P>
  876. <DD><DL>
  877. <DT><B>Since:</B></DT>
  878. <DD>jEdit 2.6pre2</DD>
  879. </DL>
  880. </DD>
  881. </DL>
  882. <HR>
  883. <A NAME="isMarkersFileSupported()"><!-- --></A><H3>
  884. isMarkersFileSupported</H3>
  885. <PRE>
  886. public boolean <B>isMarkersFileSupported</B>()</PRE>
  887. <DL>
  888. <DD>Returns if an additional markers file can be saved by this VFS.
  889. Default is <code>true</code>.
  890. <P>
  891. <DD><DL>
  892. <DT><B>Since:</B></DT>
  893. <DD>jEdit 4.3pre10</DD>
  894. </DL>
  895. </DD>
  896. </DL>
  897. <HR>
  898. <A NAME="getExtendedAttributes()"><!-- --></A><H3>
  899. getExtendedAttributes</H3>
  900. <PRE>
  901. public java.lang.String[] <B>getExtendedAttributes</B>()</PRE>
  902. <DL>
  903. <DD>Returns the extended attributes supported by this VFS.
  904. <P>
  905. <DD><DL>
  906. <DT><B>Since:</B></DT>
  907. <DD>jEdit 4.2pre1</DD>
  908. </DL>
  909. </DD>
  910. </DL>
  911. <HR>
  912. <A NAME="showBrowseDialog(java.lang.Object[], java.awt.Component)"><!-- --></A><H3>
  913. showBrowseDialog</H3>
  914. <PRE>
  915. <FONT SIZE="-1">@Deprecated
  916. </FONT>public java.lang.String <B>showBrowseDialog</B>(java.lang.Object[]&nbsp;session,
  917. java.awt.Component&nbsp;comp)</PRE>
  918. <DL>
  919. <DD><B>Deprecated.</B>&nbsp;<I>This function is not used in the jEdit core anymore,
  920. so it doesn't have to be provided anymore. If you want
  921. to use it for another purpose like in the FTP plugin,
  922. feel free to do so.</I>
  923. <P>
  924. <DD>Displays a dialog box that should set up a session and return
  925. the initial URL to browse.
  926. <P>
  927. <DD><DL>
  928. <DT><B>Parameters:</B><DD><CODE>session</CODE> - Where the VFS session will be stored<DD><CODE>comp</CODE> - The component that will parent error dialog boxes
  929. <DT><B>Returns:</B><DD>The URL<DT><B>Since:</B></DT>
  930. <DD>jEdit 2.7pre1</DD>
  931. </DL>
  932. </DD>
  933. </DL>
  934. <HR>
  935. <A NAME="getFileName(java.lang.String)"><!-- --></A><H3>
  936. getFileName</H3>
  937. <PRE>
  938. public java.lang.String <B>getFileName</B>(java.lang.String&nbsp;path)</PRE>
  939. <DL>
  940. <DD>Returns the file name component of the specified path.
  941. <P>
  942. <DD><DL>
  943. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path<DT><B>Since:</B></DT>
  944. <DD>jEdit 3.1pre4</DD>
  945. </DL>
  946. </DD>
  947. </DL>
  948. <HR>
  949. <A NAME="getParentOfPath(java.lang.String)"><!-- --></A><H3>
  950. getParentOfPath</H3>
  951. <PRE>
  952. public java.lang.String <B>getParentOfPath</B>(java.lang.String&nbsp;path)</PRE>
  953. <DL>
  954. <DD>Returns the parent of the specified path. This must be
  955. overridden to return a non-null value for browsing of this
  956. filesystem to work.
  957. <P>
  958. <DD><DL>
  959. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path<DT><B>Since:</B></DT>
  960. <DD>jEdit 2.6pre5</DD>
  961. </DL>
  962. </DD>
  963. </DL>
  964. <HR>
  965. <A NAME="constructPath(java.lang.String, java.lang.String)"><!-- --></A><H3>
  966. constructPath</H3>
  967. <PRE>
  968. public java.lang.String <B>constructPath</B>(java.lang.String&nbsp;parent,
  969. java.lang.String&nbsp;path)</PRE>
  970. <DL>
  971. <DD>Constructs a path from the specified directory and
  972. file name component. This must be overridden to return a
  973. non-null value, otherwise browsing this filesystem will
  974. not work.<p>
  975. Unless you are writing a VFS, this method should not be called
  976. directly. To ensure correct behavior, you <b>must</b> call
  977. <A HREF="../../../../../org/gjt/sp/jedit/MiscUtilities.html#constructPath(java.lang.String, java.lang.String)"><CODE>MiscUtilities.constructPath(String,String)</CODE></A>
  978. instead.
  979. <P>
  980. <DD><DL>
  981. <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent directory<DD><CODE>path</CODE> - The path<DT><B>Since:</B></DT>
  982. <DD>jEdit 2.6pre2</DD>
  983. </DL>
  984. </DD>
  985. </DL>
  986. <HR>
  987. <A NAME="getFileSeparator()"><!-- --></A><H3>
  988. getFileSeparator</H3>
  989. <PRE>
  990. public char <B>getFileSeparator</B>()</PRE>
  991. <DL>
  992. <DD>Returns the file separator used by this VFS.
  993. <P>
  994. <DD><DL>
  995. <DT><B>Since:</B></DT>
  996. <DD>jEdit 2.6pre9</DD>
  997. </DL>
  998. </DD>
  999. </DL>
  1000. <HR>
  1001. <A NAME="getTwoStageSaveName(java.lang.String)"><!-- --></A><H3>
  1002. getTwoStageSaveName</H3>
  1003. <PRE>
  1004. public java.lang.String <B>getTwoStageSaveName</B>(java.lang.String&nbsp;path)</PRE>
  1005. <DL>
  1006. <DD>Returns a temporary file name based on the given path.
  1007. By default jEdit first saves a file to <code>#<i>name</i>#save#</code>
  1008. and then renames it to the original file. However some virtual file
  1009. systems might not support the <code>#</code> character in filenames,
  1010. so this method permits the VFS to override this behavior.
  1011. If this method returns <code>null</code>, two stage save will not
  1012. be used for that particular file (introduced in jEdit 4.3pre1).
  1013. <P>
  1014. <DD><DL>
  1015. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path name<DT><B>Since:</B></DT>
  1016. <DD>jEdit 4.1pre7</DD>
  1017. </DL>
  1018. </DD>
  1019. </DL>
  1020. <HR>
  1021. <A NAME="reloadDirectory(java.lang.String)"><!-- --></A><H3>
  1022. reloadDirectory</H3>
  1023. <PRE>
  1024. public void <B>reloadDirectory</B>(java.lang.String&nbsp;path)</PRE>
  1025. <DL>
  1026. <DD>Called before a directory is reloaded by the file system browser.
  1027. Can be used to flush a cache, etc.
  1028. <P>
  1029. <DD><DL>
  1030. <DT><B>Since:</B></DT>
  1031. <DD>jEdit 4.0pre3</DD>
  1032. </DL>
  1033. </DD>
  1034. </DL>
  1035. <HR>
  1036. <A NAME="createVFSSession(java.lang.String, java.awt.Component)"><!-- --></A><H3>
  1037. createVFSSession</H3>
  1038. <PRE>
  1039. public java.lang.Object <B>createVFSSession</B>(java.lang.String&nbsp;path,
  1040. java.awt.Component&nbsp;comp)</PRE>
  1041. <DL>
  1042. <DD>Creates a VFS session. This method is called from the AWT thread,
  1043. so it should not do any I/O. It could, however, prompt for
  1044. a login name and password, for example.
  1045. <P>
  1046. <DD><DL>
  1047. <DT><B>Parameters:</B><DD><CODE>path</CODE> - The path in question<DD><CODE>comp</CODE> - The component that will parent any dialog boxes shown
  1048. <DT><B>Returns:</B><DD>The session. The session can be null if there were errors<DT><B>Since:</B></DT>
  1049. <DD>jEdit 2.6pre3</DD>
  1050. </DL>
  1051. </DD>
  1052. </DL>
  1053. <HR>
  1054. <A NAME="load(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, java.lang.String)"><!-- --></A><H3>
  1055. load</H3>
  1056. <PRE>
  1057. public boolean <B>load</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.j…

Large files files are truncated, but you can click here to view the full file