|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.im.service.SenderStreamingProfile
com.sun.im.service.SenderFileStreamingProfile
Constructor Summary | |
SenderFileStreamingProfile(java.io.File file,
boolean computeHash,
java.lang.String description)
Creates a new instance of SenderFileStreamingProfile |
Method Summary | |
java.lang.String |
getDescription()
Get the description associated with the stream |
java.io.File |
getFile()
Get the file associated with this profile |
byte[] |
getHash()
Gets the MD5 hash of the file for the streaming |
void |
setHash(byte[] hash)
Sets the MD5 hash of the file for the streaming |
Methods inherited from class com.sun.im.service.SenderStreamingProfile |
getMimeType, setMimeType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SenderFileStreamingProfile(java.io.File file, boolean computeHash, java.lang.String description) throws java.io.FileNotFoundException
file
- The file which is being streamedcomputeHash
- Computes the MD5 digest of the file.description
- The description of about the file
java.io.FileNotFoundException
- when the file passed to it does not existsMethod Detail |
public java.io.File getFile()
public byte[] getHash()
public void setHash(byte[] hash)
hash
- The MD5 hashpublic java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |