public class DirectoryImpl extends FileImpl implements IDirectory
| Constructor and Description |
|---|
DirectoryImpl(File dir,
File rootFile) |
| Modifier and Type | Method and Description |
|---|---|
IDirectory |
convert() |
IFile |
getFile(String name)
Gets the requested file under this directory.
|
long |
getLastModified() |
IDirectory |
getParent() |
boolean |
isRoot() |
Iterator<IFile> |
iterator() |
List<IFile> |
listAllFiles() |
List<IFile> |
listFiles() |
InputStream |
open()
The input stream returned by this method should always be closed after use.
|
ICloseableDirectory |
toCloseable()
Open a more effective implementation with user regulated resource management.
|
convertNested, equals, getName, getRoot, getSize, hashCode, isDirectory, isFile, toString, toURLforEach, spliteratorconvertNested, getName, getRoot, getSize, isDirectory, isFile, toURLpublic IFile getFile(String name)
IDirectorygetFile in interface IDirectoryname - the name of the file.public boolean isRoot()
isRoot in interface IDirectorypublic List<IFile> listFiles()
listFiles in interface IDirectorypublic List<IFile> listAllFiles()
listAllFiles in interface IDirectorypublic IDirectory getParent()
public IDirectory convert()
public InputStream open() throws IOException
IFileopen in interface IFileopen in class FileImplIOExceptionpublic long getLastModified()
getLastModified in interface IFilegetLastModified in class FileImplpublic ICloseableDirectory toCloseable()
IDirectorytoCloseable in interface IDirectoryICloseableDirectory or null if a batch aware version of this IDirectory is not supportedCopyright © 2010 - 2020 Adobe. All Rights Reserved