|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.stephenc.javaisotools.iso9660.ISO9660File
public class ISO9660File
Note: this class has a natural ordering that is inconsistent with equals.
| Field Summary | |
|---|---|
static Pattern |
FILEPATTERN
|
| Constructor Summary | |
|---|---|
ISO9660File(DataReference dataReference,
String name,
long lastModified)
|
|
ISO9660File(File file)
Create File |
|
ISO9660File(File file,
int version)
Create file from File object |
|
ISO9660File(ISO9660File file)
|
|
ISO9660File(String pathname)
Create File |
|
ISO9660File(String pathname,
int version)
Create file from File object |
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(Object object)
|
void |
enforce8plus3(boolean force)
Force short filename ("8+3") |
void |
enforceDotDelimiter(boolean force)
Force dot character |
boolean |
enforces8plus3()
Returns whether this file's name is forced to be recorded "8+3" |
boolean |
enforcesDotDelimiter()
Returns whether this file's name is forced to include the dot character |
boolean |
equals(Object toCompare)
|
String |
getAbsolutePath()
Return the File.getAbsolutePath() for the underlying File
or null if this ISO9660File is not constructed from a
File |
Object |
getContentID()
Returns and identification of the File underlying this object |
DataReference |
getDataReference()
|
String |
getExtension()
Returns the extension of the file (without front dot) |
String |
getFilename()
Returns the name of the file (without dot) |
String |
getFullName()
Returns the full ISO 9660 filename, i.e. |
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 |
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 |
int |
getVersion()
Returns the file version |
int |
hashCode()
|
boolean |
isDirectory()
Returns whether the hierarchy object is a directory |
boolean |
isMovedDirectory()
Returns whether this represents a moved directory "totem pole" |
long |
lastModified()
|
long |
length()
|
void |
setExtension(String extension)
Set the extension of the file (without front dot) |
void |
setFilename(String filename)
Set the name of the file (without dot) |
void |
setIsMovedDirectory()
Declare this file to be a moved directory "totem pole" |
void |
setName(String name)
Set the name of the hierarchy object |
void |
setVersion(int version)
Set file version |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Pattern FILEPATTERN
| Constructor Detail |
|---|
public ISO9660File(DataReference dataReference,
String name,
long lastModified)
throws HandlerException
HandlerException
public ISO9660File(File file,
int version)
throws HandlerException
file - Fileversion - File version
HandlerException - Invalid File version or file is a directory
public ISO9660File(String pathname,
int version)
throws HandlerException
pathname - Fileversion - File version
HandlerException - Invalid File version or file is a directory
public ISO9660File(File file)
throws HandlerException
file - File
HandlerException - File is a directory
public ISO9660File(String pathname)
throws HandlerException
pathname - File
HandlerException - File is a directory
public ISO9660File(ISO9660File file)
throws HandlerException
HandlerException| Method Detail |
|---|
public String getFilename()
public String getExtension()
public String getName()
ISO9660HierarchyObject
getName in interface ISO9660HierarchyObjectpublic void setIsMovedDirectory()
public boolean isMovedDirectory()
public void setFilename(String filename)
filename - File namepublic void setExtension(String extension)
extension - File extensionpublic void setName(String name)
ISO9660HierarchyObject
setName in interface ISO9660HierarchyObjectname - Namepublic String getFullName()
public int getVersion()
public void setVersion(int version)
throws HandlerException
version - File version
HandlerException - Invalid file versionpublic boolean enforces8plus3()
public void enforce8plus3(boolean force)
force - Whether to force this file's name to be shortpublic boolean enforcesDotDelimiter()
public void enforceDotDelimiter(boolean force)
force - Whether to force this file's name to include the dot character
public int compareTo(Object object)
throws ClassCastException,
NullPointerException
compareTo in interface ComparableClassCastException
NullPointerExceptionpublic boolean equals(Object toCompare)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic ISO9660Directory getParentDirectory()
ISO9660HierarchyObject
getParentDirectory in interface ISO9660HierarchyObject
public String getISOPath()
throws NullPointerException
ISO9660HierarchyObject
getISOPath in interface ISO9660HierarchyObjectNullPointerExceptionpublic Object getID()
ISO9660HierarchyObject
getID in interface ISO9660HierarchyObjectpublic Object getContentID()
public ISO9660RootDirectory getRoot()
throws NullPointerException
ISO9660HierarchyObject
getRoot in interface ISO9660HierarchyObjectNullPointerExceptionpublic boolean isDirectory()
ISO9660HierarchyObject
isDirectory in interface ISO9660HierarchyObjectpublic Object clone()
clone in class Objectpublic long length()
public long lastModified()
public String getAbsolutePath()
File.getAbsolutePath() for the underlying File
or null if this ISO9660File is not constructed from a
File
public DataReference getDataReference()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||