|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static int |
INTEGRITY_COMPROMISED
The integrity of the streamed file was compromised. |
static int |
INTEGRITY_OK
The integrity of the streamed file was maintained. |
static int |
INTEGRITY_UNKNOWN
The integrity of the streamed file cannot be determined. |
Method Summary | |
void |
addOutput(java.io.File f)
Used to store the streamed data into the file. |
int |
checkIntegrity()
Checks the integrity of the file after the streaming is successfully completed. |
java.lang.String |
getDescription()
Get the description associated with the stream |
byte[] |
getHash()
Gets the MD5 hash of the file for the streaming |
long |
getLastModified()
Gets the last modified date of the file being streamed |
long |
getLength()
Gets the length of the file to be transferred |
java.lang.String |
getName()
Get the name associated with this profile |
long |
getOffset()
Gets the offset for the file transfer. |
void |
setLength(long length)
Sets the length of the bytes from the offset that needs to be transferred. |
void |
setOffset(long offset)
Sets the offset for the file transfer. |
long |
size()
Gets the size of the file to be streamed |
Methods inherited from interface com.sun.im.service.ReceiverStreamingProfile |
addOutput, getMimeType |
Field Detail |
public static final int INTEGRITY_OK
public static final int INTEGRITY_COMPROMISED
public static final int INTEGRITY_UNKNOWN
Method Detail |
public java.lang.String getName()
public java.lang.String getDescription()
public long size()
public byte[] getHash()
public long getLastModified()
public long getOffset()
public void setOffset(long offset)
offset
- The offset from which the file should be streamedpublic long getLength()
public void setLength(long length)
length
- The length of bytes from offset that needs to be transferredpublic void addOutput(java.io.File f)
f
- The file where the data needs to be stored. If f represents a directory then
a file will be created in that directory with name as returned by getName.public int checkIntegrity()
addOutput(java.io.File)
method.
java.lang.IllegalStateException
- when this method is called before the streaming is
successfully completed or when the streamed data was not stored into a file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |