⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vfs.xtp

📁 解压在c盘
💻 XTP
字号:
<s1 title="VFS Introduction"><p>Resin's VFS combines and simplifies the morassin Java I/O.  The core classes are:</p><ul><li><var/Path/> - API similar to File, but supports URLs as well aspaths.<li><var/ReadStream/> - buffered read stream handing bothbyte and character input<li><var/WriteStream/> - buffered write stream handling bothbyte and character output</ul><s2 title="Virtual Paths"><p>Path access is based on standard URLs.  The following URL schemes arepredefined.<ul><li><b>file:</b> -- the standard filesystem<li><b>http:</b> -- the http filesystem<li><b>mailto:</b> -- sending mail<li><b>stdout:</b> -- standard output (System.out)<li><b>stderr:</b> -- standard error (System.err)<li><b>tcp:</b> -- TCP socket pair<li><b>null:</b> -- /dev/null<li><b>log:</b> -- debug logging (controlled by resin.conf)</ul></s2><s2 title="ReadStream and WriteStream"><p>Since <var/ReadStream/> implements <var/InputStream/> and<var/WriteStream/> implements <var/OutputStream/> the VFS streams canbe used without fuss in most cases.</p><p>The VFS streams are always buffered, so applications don't need toworry about creating buffered streams.</p><p>WriteStream also implements the <var/print()/> functions, throwingIOExceptions, so applications can easily write strings.</p></s2><s2 title="Vfs Facade"><p>The <var/Vfs/> facade is the most convenient way to open a new file usingResin's VFS.  To open a file for reading, use</p><example>ReadStream is = Vfs.openRead("test.html");</example></s2></s1>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -