|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.stephenc.javaisotools.iso9660.ISO9660Directory
public class ISO9660Directory
| Constructor Summary | |
|---|---|
ISO9660Directory(File file)
Create directory |
|
ISO9660Directory(String name)
Create directory |
|
| Method Summary | |
|---|---|
void |
addContentsRecursively(File file)
Add contents of directory recursively |
ISO9660Directory |
addDirectory(File file)
Add directory |
ISO9660Directory |
addDirectory(ISO9660Directory dir)
Add directory |
ISO9660Directory |
addDirectory(String name)
Add directory |
void |
addFile(File file)
Add file |
void |
addFile(File file,
int version)
Add file |
void |
addFile(ISO9660File file)
Add file |
void |
addFile(String pathname)
Add file |
void |
addFile(String pathname,
int version)
Add file |
ISO9660Directory |
addPath(String path)
Add path |
void |
addRecursively(File file)
Add file or directory recursively |
Object |
clone()
|
int |
compareTo(Object object)
|
void |
forceSort()
Force a sort of this directory's files and subdirectories |
List<ISO9660Directory> |
getDirectories()
Returns a Vector of the directory's subdirectories |
List<ISO9660File> |
getFiles()
Returns a Vector of the directory's files |
Object |
getID()
Returns an Object identifying this hierarchy object |
String |
getISOPath()
Returns the path from the root to this hierarchy object with each path component separated by File.separator so that its length represents the ISO 9660 path length |
int |
getLevel()
Returns this directory's level of the directory hierarchy |
String |
getName()
Returns the name of the hierarchy object |
ISO9660Directory |
getParentDirectory()
Returns the parent directory of this hierarchy object |
ISO9660RootDirectory |
getRoot()
Returns the root of the directory hierarchy |
boolean |
hasSubDirs()
Returns whether this directory contains subdirectories |
boolean |
isDirectory()
Returns whether the hierarchy object is a directory |
boolean |
isMoved()
Returns whether this directory has been relocated |
long |
lastModified()
Returns date of last modification |
ISO9660Directory |
relocate()
Relocate directory |
void |
setName(String name)
Set the name of the hierarchy object |
Iterator<ISO9660Directory> |
sortedIterator()
Returns a directory iterator to traverse the directory hierarchy according to the needs of ISO 9660 (sort order of Path Tables and Directory Records) |
Iterator<ISO9660Directory> |
unsortedIterator()
Returns a directory iterator to traverse the directory hierarchy using a recursive method |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ISO9660Directory(String name)
name - Name of the directory
public ISO9660Directory(File file)
throws HandlerException
file - Directory
HandlerException - Not a directory| Method Detail |
|---|
public void setName(String name)
ISO9660HierarchyObject
setName in interface ISO9660HierarchyObjectname - Namepublic String getName()
ISO9660HierarchyObject
getName in interface ISO9660HierarchyObjectpublic int getLevel()
public ISO9660RootDirectory getRoot()
ISO9660HierarchyObject
getRoot in interface ISO9660HierarchyObjectpublic ISO9660Directory getParentDirectory()
ISO9660HierarchyObject
getParentDirectory in interface ISO9660HierarchyObjectpublic List<ISO9660File> getFiles()
public List<ISO9660Directory> getDirectories()
public boolean hasSubDirs()
public String getISOPath()
ISO9660HierarchyObject
getISOPath in interface ISO9660HierarchyObjectpublic ISO9660Directory addDirectory(ISO9660Directory dir)
dir - Directory to be added
public ISO9660Directory addDirectory(File file)
throws HandlerException
file - Directory to be added
HandlerException - Not a directorypublic ISO9660Directory addDirectory(String name)
name - Name of the directory to created and added
public ISO9660Directory addPath(String path)
throws HandlerException
path - Filesystem-specific path to be added recursively
HandlerExceptionpublic void forceSort()
public void addFile(ISO9660File file)
file - File to be added
public void addFile(File file,
int version)
throws HandlerException
file - File to be addedversion - File version
HandlerException - Problems converting to ISO9660File
public void addFile(File file)
throws HandlerException
file - File to be added
HandlerException - Problems converting to ISO9660File
public void addFile(String pathname,
int version)
throws HandlerException
pathname - File to be addedversion - File version
HandlerException - Problems converting to ISO9660File
public void addFile(String pathname)
throws HandlerException
pathname - File to be added
HandlerException - Problems converting to ISO9660File
public void addRecursively(File file)
throws HandlerException
file - File or directory to be added recursively
HandlerException - Problems converting to ISO9660File
public void addContentsRecursively(File file)
throws HandlerException
file - Directory the contents of which are to be added recursively
HandlerException - Problems converting to ISO9660File
public int compareTo(Object object)
throws ClassCastException,
NullPointerException
compareTo in interface ComparableClassCastException
NullPointerExceptionpublic long lastModified()
public boolean isDirectory()
ISO9660HierarchyObject
isDirectory in interface ISO9660HierarchyObjectpublic boolean isMoved()
public ISO9660Directory relocate()
public Object getID()
ISO9660HierarchyObject
getID in interface ISO9660HierarchyObjectpublic Object clone()
clone in class Objectpublic Iterator<ISO9660Directory> sortedIterator()
public Iterator<ISO9660Directory> unsortedIterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||