- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin.downloadAttachment()
方法的一些代码示例,展示了ZipExplorerPlugin.downloadAttachment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipExplorerPlugin.downloadAttachment()
方法的具体详情如下:
包路径:com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin
类名称:ZipExplorerPlugin
方法名:downloadAttachment
[英]For ZIP URLs of the format http://[...]/zipfile.zip/SomeDirectory/SomeFile.txt
return a new attachment containing the file pointed to inside the ZIP. If the original attachment does not point to a ZIP file or if it doesn't specify a location inside the ZIP then do nothing and return the original attachment.
[中]对于格式为http://[...]/zipfile.zip/SomeDirectory/SomeFile.txt
的ZIP URL,返回一个新附件,其中包含指向ZIP内部的文件。如果原始附件未指向ZIP文件,或者未在ZIP中指定位置,则不执行任何操作并返回原始附件。
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
/**
* For ZIP URLs of the format <code>http://[...]/zipfile.zip/SomeDirectory/SomeFile.txt</code> return a new
* attachment containing the file pointed to inside the ZIP. If the original attachment does not point to a ZIP file
* or if it doesn't specify a location inside the ZIP then do nothing and return the original attachment.
*
* @param attachment the original attachment
* @return a new attachment pointing to the file pointed to by the URL inside the ZIP or the original attachment if
* the requested URL doesn't specify a file inside a ZIP
* @see com.xpn.xwiki.plugin.XWikiDefaultPlugin#downloadAttachment
*/
public XWikiAttachment downloadAttachment(XWikiAttachment attachment)
{
return getProtectedPlugin().downloadAttachment(attachment, getXWikiContext());
}
代码示例来源:origin: org.xwiki.platform/xwiki-platform-zipexplorer
/**
* For ZIP URLs of the format <code>http://[...]/zipfile.zip/SomeDirectory/SomeFile.txt</code> return a new
* attachment containing the file pointed to inside the ZIP. If the original attachment does not point to a ZIP file
* or if it doesn't specify a location inside the ZIP then do nothing and return the original attachment.
*
* @param attachment the original attachment
* @return a new attachment pointing to the file pointed to by the URL inside the ZIP or the original attachment if
* the requested URL doesn't specify a file inside a ZIP
* @see com.xpn.xwiki.plugin.XWikiDefaultPlugin#downloadAttachment
*/
public XWikiAttachment downloadAttachment(XWikiAttachment attachment)
{
return getProtectedPlugin().downloadAttachment(attachment, getXWikiContext());
}
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPluginAPI类的一些代码示例,展示了ZipExplorerPluginAPI类的具体用
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin类的一些代码示例,展示了ZipExplorerPlugin类的具体用法。这些代码
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPluginAPI.getProtectedPlugin()方法的一些代码示例,展示了Zip
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPluginAPI.()方法的一些代码示例,展示了ZipExplorerPluginAPI.
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin.getFileLink()方法的一些代码示例,展示了ZipExplorerPl
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPluginAPI.getXWikiContext()方法的一些代码示例,展示了ZipExp
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin.isValidZipURL()方法的一些代码示例,展示了ZipExplorer
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin.downloadAttachment()方法的一些代码示例,展示了ZipExp
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin.init()方法的一些代码示例,展示了ZipExplorerPlugin.in
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin.getFileList()方法的一些代码示例,展示了ZipExplorerPl
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin.isZipFile()方法的一些代码示例,展示了ZipExplorerPlug
本文整理了Java中com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin.getFileTreeList()方法的一些代码示例,展示了ZipExplor
我是一名优秀的程序员,十分优秀!