blob: e87a6795a6905177ffcacaf89a10c38cdd34141a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_181) on Fri Sep 14 11:33:50 BST 2018 -->
<title>Deprecated List (File System API)</title>
<meta name="date" content="2018-09-14">
<link rel="stylesheet" type="text/css" href="javadoc.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Deprecated List (File System API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="overview-summary.html">Overview</a></li>
<li>Package</li>
<li>Class</li>
<li>Use</li>
<li><a href="overview-tree.html">Tree</a></li>
<li class="navBarCell1Rev">Deprecated</li>
<li><a href="index-files/index-1.html">Index</a></li>
<li><a href="help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">org.openide.filesystems 9.12.1 </div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="index.html?deprecated-list.html" target="_top">Frames</a></li>
<li><a href="deprecated-list.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Deprecated API" class="title">Deprecated API</h1>
<h2 title="Contents">Contents</h2>
<ul>
<li><a href="#field">Deprecated Fields</a></li>
<li><a href="#method">Deprecated Methods</a></li>
<li><a href="#constructor">Deprecated Constructors</a></li>
</ul>
</div>
<div class="contentContainer"><a name="field">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<table class="deprecatedSummary" border="0" cellpadding="3" cellspacing="0" summary="Deprecated Fields table, listing deprecated fields, and an explanation">
<caption><span>Deprecated Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/DefaultAttributes.html#ATTR_EXT">org.openide.filesystems.DefaultAttributes.ATTR_EXT</a>
<div class="block"><span class="deprecationComment">does not handle XML attributes</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/DefaultAttributes.html#ATTR_NAME">org.openide.filesystems.DefaultAttributes.ATTR_NAME</a>
<div class="block"><span class="deprecationComment">does not handle XML attributes</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/DefaultAttributes.html#ATTR_NAME_EXT">org.openide.filesystems.DefaultAttributes.ATTR_NAME_EXT</a>
<div class="block"><span class="deprecationComment">does not handle XML attributes</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/FileSystem.html#PROP_HIDDEN">org.openide.filesystems.FileSystem.PROP_HIDDEN</a>
<div class="block"><span class="deprecationComment">The property is now hidden.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/FileSystem.html#PROP_SYSTEM_NAME">org.openide.filesystems.FileSystem.PROP_SYSTEM_NAME</a>
<div class="block"><span class="deprecationComment">This system name should now be avoided in favor of identifying files persistently by URL.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/AbstractFileSystem.List.html#serialVersionUID">org.openide.filesystems.AbstractFileSystem.List.serialVersionUID</a>
<div class="block"><span class="deprecationComment">Only public by accident.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/AbstractFileSystem.Change.html#serialVersionUID">org.openide.filesystems.AbstractFileSystem.Change.serialVersionUID</a>
<div class="block"><span class="deprecationComment">Only public by accident.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/AbstractFileSystem.Transfer.html#serialVersionUID">org.openide.filesystems.AbstractFileSystem.Transfer.serialVersionUID</a>
<div class="block"><span class="deprecationComment">Only public by accident.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/AbstractFileSystem.Info.html#serialVersionUID">org.openide.filesystems.AbstractFileSystem.Info.serialVersionUID</a>
<div class="block"><span class="deprecationComment">Only public by accident.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/AbstractFileSystem.Attr.html#serialVersionUID">org.openide.filesystems.AbstractFileSystem.Attr.serialVersionUID</a>
<div class="block"><span class="deprecationComment">Only public by accident.</span></div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="method">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<table class="deprecatedSummary" border="0" cellpadding="3" cellspacing="0" summary="Deprecated Methods table, listing deprecated methods, and an explanation">
<caption><span>Deprecated Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#addFileChangeListener-org.openide.filesystems.FileChangeListener-">org.openide.filesystems.Repository.addFileChangeListener(FileChangeListener)</a>
<div class="block"><span class="deprecationComment">useless because there is no filesystem but only
default filesystem in Repository. Add new listener directly to
default filesystem <a href="org/openide/filesystems/Repository.html#getDefaultFileSystem--"><code>Repository.getDefaultFileSystem()</code></a>.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#addFileSystem-org.openide.filesystems.FileSystem-">org.openide.filesystems.Repository.addFileSystem(FileSystem)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#addRepositoryListener-org.openide.filesystems.RepositoryListener-">org.openide.filesystems.Repository.addRepositoryListener(RepositoryListener)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/FileUtil.html#extractJar-org.openide.filesystems.FileObject-java.io.InputStream-">org.openide.filesystems.FileUtil.extractJar(FileObject, InputStream)</a>
<div class="block"><span class="deprecationComment">Use of XML filesystem layers generally obsoletes this method.
For tests, use <a href="../org-openide-util/org/openide/util/test.TestFileUtils.html?is-external=true#unpackZipFile" title="class or interface in org.openide.util"><code>test.TestFileUtils</code></a>.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#fileSystems--">org.openide.filesystems.Repository.fileSystems()</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/MultiFileSystem.html#find-java.lang.String-java.lang.String-java.lang.String-">org.openide.filesystems.MultiFileSystem.find(String, String, String)</a></td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/FileSystem.html#find-java.lang.String-java.lang.String-java.lang.String-">org.openide.filesystems.FileSystem.find(String, String, String)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead, or use <a href="org/openide/filesystems/FileSystem.html#findResource-java.lang.String-"><code>FileSystem.findResource(java.lang.String)</code></a> if you are not interested in classpaths.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#find-java.lang.String-java.lang.String-java.lang.String-">org.openide.filesystems.Repository.find(String, String, String)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#findAll-java.lang.String-java.lang.String-java.lang.String-">org.openide.filesystems.Repository.findAll(String, String, String)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#findAllResources-java.lang.String-">org.openide.filesystems.Repository.findAllResources(String)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/URLMapper.html#findFileObjects-java.net.URL-">org.openide.filesystems.URLMapper.findFileObjects(URL)</a>
<div class="block"><span class="deprecationComment">Use <a href="org/openide/filesystems/URLMapper.html#findFileObject-java.net.URL-"><code>URLMapper.findFileObject(java.net.URL)</code></a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#findFileSystem-java.lang.String-">org.openide.filesystems.Repository.findFileSystem(String)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#findResource-java.lang.String-">org.openide.filesystems.Repository.findResource(String)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/FileUtil.html#fromFile-java.io.File-">org.openide.filesystems.FileUtil.fromFile(File)</a>
<div class="block"><span class="deprecationComment">Use <a href="org/openide/filesystems/FileUtil.html#toFileObject-java.io.File-"><code>FileUtil.toFileObject(java.io.File)</code></a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#getDefaultFileSystem--">org.openide.filesystems.Repository.getDefaultFileSystem()</a>
<div class="block"><span class="deprecationComment">Please use <a href="org/openide/filesystems/FileUtil.html#getConfigFile-java.lang.String-"><code>FileUtil.getConfigFile(String)</code></a> or
<a href="org/openide/filesystems/FileUtil.html#getConfigRoot--"><code>FileUtil.getConfigRoot()</code></a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#getFileSystems--">org.openide.filesystems.Repository.getFileSystems()</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/FileUtil.html#getMIMEType-java.lang.String-">org.openide.filesystems.FileUtil.getMIMEType(String)</a>
<div class="block"><span class="deprecationComment">use <a href="org/openide/filesystems/FileUtil.html#getMIMEType-org.openide.filesystems.FileObject-"><code>FileUtil.getMIMEType(FileObject)</code></a> or <a href="org/openide/filesystems/FileUtil.html#getMIMEType-org.openide.filesystems.FileObject-java.lang.String...-"><code>FileUtil.getMIMEType(FileObject, String[])</code></a>
as MIME cannot be generally detected by file object extension.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/FileObject.html#getPackageName-char-">org.openide.filesystems.FileObject.getPackageName(char)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/FileObject.html#getPackageNameExt-char-char-">org.openide.filesystems.FileObject.getPackageNameExt(char, char)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/FileSystem.html#getSystemName--">org.openide.filesystems.FileSystem.getSystemName()</a>
<div class="block"><span class="deprecationComment">The system name should now be avoided in favor of identifying files persistently by URL.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/FileObject.html#getURL--">org.openide.filesystems.FileObject.getURL()</a>
<div class="block"><span class="deprecationComment">Use <a href="org/openide/filesystems/FileObject.html#toURL--"><code>FileObject.toURL()</code></a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/FileObject.html#isReadOnly--">org.openide.filesystems.FileObject.isReadOnly()</a>
<div class="block"><span class="deprecationComment">Please use the <a href="org/openide/filesystems/FileObject.html#canWrite--"><code>FileObject.canWrite()</code></a>.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/FileUtil.html#nbfsURLStreamHandler--">org.openide.filesystems.FileUtil.nbfsURLStreamHandler()</a>
<div class="block"><span class="deprecationComment">No longer used.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/FileUtil.html#preventFileChooserSymlinkTraversal-javax.swing.JFileChooser-java.io.File-">org.openide.filesystems.FileUtil.preventFileChooserSymlinkTraversal(JFileChooser, File)</a>
<div class="block"><span class="deprecationComment">Just use <a href="http://download.oracle.com/javase/8/docs/api/javax/swing/JFileChooser.html?is-external=true#setCurrentDirectory-java.io.File-" title="class or interface in javax.swing"><code>JFileChooser.setCurrentDirectory(java.io.File)</code></a>. JDK 6 does not have this bug.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#readExternal-java.io.ObjectInput-">org.openide.filesystems.Repository.readExternal(ObjectInput)</a>
<div class="block"><span class="deprecationComment">Unused.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#removeFileChangeListener-org.openide.filesystems.FileChangeListener-">org.openide.filesystems.Repository.removeFileChangeListener(FileChangeListener)</a>
<div class="block"><span class="deprecationComment">useless because there is no filesystem but only
default filesystem in Repository. Add new listener directly to
default filesystem <a href="org/openide/filesystems/Repository.html#getDefaultFileSystem--"><code>Repository.getDefaultFileSystem()</code></a>.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#removeFileSystem-org.openide.filesystems.FileSystem-">org.openide.filesystems.Repository.removeFileSystem(FileSystem)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#removeRepositoryListener-org.openide.filesystems.RepositoryListener-">org.openide.filesystems.Repository.removeRepositoryListener(RepositoryListener)</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#reorder-int:A-">org.openide.filesystems.Repository.reorder(int[])</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/FileObject.html#setImportant-boolean-">org.openide.filesystems.FileObject.setImportant(boolean)</a>
<div class="block"><span class="deprecationComment">No longer used. Instead use
<a href="./org/openide/filesystems/../org-netbeans-modules-queries/org/netbeans/api/queries/SharabilityQuery.html"><code>SharabilityQuery</code></a>.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/FileSystem.html#setSystemName-java.lang.String-">org.openide.filesystems.FileSystem.setSystemName(String)</a>
<div class="block"><span class="deprecationComment">The system name should now be avoided in favor of identifying files persistently by URL.</span></div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#toArray--">org.openide.filesystems.Repository.toArray()</a>
<div class="block"><span class="deprecationComment">Please use the <a href="./org/openide/filesystems/../org-netbeans-api-java-classpath/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.</span></div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/Repository.html#writeExternal-java.io.ObjectOutput-">org.openide.filesystems.Repository.writeExternal(ObjectOutput)</a>
<div class="block"><span class="deprecationComment">Unused.</span></div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="constructor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<table class="deprecatedSummary" border="0" cellpadding="3" cellspacing="0" summary="Deprecated Constructors table, listing deprecated constructors, and an explanation">
<caption><span>Deprecated Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="org/openide/filesystems/MIMEResolver.html#MIMEResolver--">org.openide.filesystems.MIMEResolver()</a>
<div class="block"><span class="deprecationComment">Use <a href="org/openide/filesystems/MIMEResolver.html#MIMEResolver-java.lang.String...-"><code>MIMEResolver.MIMEResolver(String...)</code></a> instead. Declaring MIME
types which can only be resolved by this resolver helps to speed up IDE.</span></div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="overview-summary.html">Overview</a></li>
<li>Package</li>
<li>Class</li>
<li>Use</li>
<li><a href="overview-tree.html">Tree</a></li>
<li class="navBarCell1Rev">Deprecated</li>
<li><a href="index-files/index-1.html">Index</a></li>
<li><a href="help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">org.openide.filesystems 9.12.1 </div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="index.html?deprecated-list.html" target="_top">Frames</a></li>
<li><a href="deprecated-list.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><span class="footnote">Built on September 14 2018.&nbsp;&nbsp;|&nbsp;&nbsp; Copyright &#169; 2017-2018 Apache Software Foundation. All Rights Reserved.</span></small></p>
</body>
</html>