Available Methods
- getFileObject ( )
- isFolder ( )
- getOutputStream ( )
- getChildren ( )
- delete ( )
- createFolder ( )
- createData ( )
- getAttribute ( )
- equals ( )
- getInputStream ( )
- isValid ( )
- setAttribute ( )
- lock ( )
- getParent ( )
- isData ( )
- getName ( )
- refresh ( )
- addFileChangeListener ( )
- getPath ( )
- getNameExt ( )
- hasExt ( )
- toURL ( )
- getFileSystem ( )
- rename ( )
- getExt ( )
- getMIMEType ( )
- getSize ( )
- canWrite ( )
- asText ( )
- getFolders ( )
- isRoot ( )
- removeFileChangeListener ( )
- getURL ( )
- getAttributes ( )
- copy ( )
- move ( )
- isVirtual ( )
- toURI ( )
- canRead ( )
- createAndOpen ( )
- existsExt ( )
- revert ( )
- addRecursiveListener ( )
- lastModified ( )
- canRevert ( )
- isLocked ( )
- getData ( )
- getClass ( )
- readSymbolicLink ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- java.io.InputStream
- java.util.Iterator
- java.net.URL
- java.io.OutputStream
- java.util.LinkedList
- java.net.URI
- java.util.logging.Logger
- java.util.logging.Level
- java.awt.event.ActionEvent
- javax.swing.SwingUtilities
- javax.lang.model.element.TypeElement
- javax.lang.model.element.Element
- javax.swing.text.Document
- org.openide.util.Lookup
- org.openide.util.NbBundle
- org.openide.util.Exceptions
- org.openide.nodes.Node
- org.openide.util.Utilities
- org.openide.DialogDisplayer
- org.openide.filesystems.FileUtil
- org.openide.ErrorManager
- org.openide.loaders.DataObject
Java Code Examples for org.openide.filesystems.FileObject#readSymbolicLink()
The following examples show how to use
org.openide.filesystems.FileObject#readSymbolicLink() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileObjSymlinkTest.java From netbeans with Apache License 2.0 | 6 votes |
public void testReadSymbolicLinkRelative() throws IOException { if (!checkSymlinksSupported()) { return; } File dir = getWorkDir(); File folder = new File(dir, "folder"); File link = new File(dir, "link"); folder.mkdir(); Path lp = Files.createSymbolicLink(link.toPath(), Paths.get("folder")); assertNotNull(lp); FileObject linkFO = FileUtil.toFileObject(link); assertNotNull(linkFO); FileObject dataFO = linkFO.readSymbolicLink(); assertNotSame(linkFO, dataFO); assertNotNull(dataFO); assertEquals("folder", dataFO.getNameExt()); }
Example 2
Source File: FileObjSymlinkTest.java From netbeans with Apache License 2.0 | 5 votes |
public void testReadSymbolicLinkAbsolute() throws IOException { if (!checkSymlinksSupported()) { return; } File dir = getWorkDir(); File data = new File(dir, "data.dat"); File link = new File(dir, "link.lnk"); data.createNewFile(); Files.createSymbolicLink(link.toPath(), data.toPath()); FileObject linkFO = FileUtil.toFileObject(link); FileObject dataFO = linkFO.readSymbolicLink(); assertNotSame(linkFO, dataFO); assertNotNull(dataFO); assertEquals("data.dat", dataFO.getNameExt()); }