|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.BbFile
public class BbFile
Provides a wrapper around file elements for attaching to data objects within the persistence framework.
| Field Summary | |
|---|---|
static long |
UNKNOWN_SIZE
Can be used to specify an unknown file size for a BbFile |
static BbFile |
UNSET_FILE
|
| Constructor Summary | |
|---|---|
BbFile(java.io.File file,
java.lang.String filename)
Constructs a BbFile for the given File, using the specified filename. |
|
BbFile(java.io.File file,
java.lang.String filename,
boolean isMovable)
Constructs a BbFile for the given File, using the specified filename as the internal filename, and
specifying whether the file is movable from its current location. |
|
BbFile(java.lang.String path)
Constructs a BbFile with the given path. |
|
BbFile(java.lang.String path,
long fileSize)
Constructs a BbFile with the given path and file size. |
|
BbFile(java.lang.String path,
java.lang.String filename)
Constructs a BbFile with the given path and filename. |
|
BbFile(java.lang.String path,
java.lang.String filename,
long fileSize)
Constructs a BbFile with the given path and filename and file size. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Overrides the equals() method in Object to provide a simple way to compare
two BbFile objects. |
java.lang.String |
getDisplayFilename()
|
java.io.File |
getFile()
Returns the underlying File represented by this BbFile. |
java.lang.String |
getFilename()
Returns the displayable filename for the associated file. |
boolean |
getIsMoveable()
Returns flag noting whether associated file content can be moved from its current directory. |
java.lang.String |
getPath()
Returns the path value of this object. |
long |
getSize()
Returns the file size value for this BbFile. |
int |
hashCode()
|
java.lang.String |
toString()
Returns the contents of this BbFile object as a single line separated list of name value pairs of this
object's properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long UNKNOWN_SIZE
BbFile
public static final BbFile UNSET_FILE
| Constructor Detail |
|---|
public BbFile(java.io.File file,
java.lang.String filename)
BbFile for the given File, using the specified filename.
public BbFile(java.io.File file,
java.lang.String filename,
boolean isMovable)
BbFile for the given File, using the specified filename as the internal filename, and
specifying whether the file is movable from its current location.
public BbFile(java.lang.String path)
BbFile with the given path.
public BbFile(java.lang.String path,
long fileSize)
BbFile with the given path and file size.
public BbFile(java.lang.String path,
java.lang.String filename)
BbFile with the given path and filename.
public BbFile(java.lang.String path,
java.lang.String filename,
long fileSize)
BbFile with the given path and filename and file size.
| Method Detail |
|---|
public java.io.File getFile()
File represented by this BbFile. Note: This value is often not set; only
call this method if you are confident that the BbFile was constructed with a File handle.
public java.lang.String getFilename()
public java.lang.String getDisplayFilename()
public boolean getIsMoveable()
public java.lang.String getPath()
String representing the path of this BbFilepublic long getSize()
BbFile.
Course. UNKNOWN_SIZE is returned if the size is
not known.public boolean equals(java.lang.Object obj)
equals() method in Object to provide a simple way to compare
two BbFile objects.
equals in class java.lang.Objectobj - the object to be compared.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
BbFile object as a single line separated list of name value pairs of this
object's properties. This method can be used for debug purposes.
toString in class java.lang.ObjectString that represents the contents of this object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||