|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteFile
RemoteFile: Interface for encapsulating remote files. Enables us to transmit large files between system components situated on different machines. Our current JMS broker(s) does not allow large message (i.e. messages > 70 MB).
Method Summary | |
---|---|
void |
appendTo(java.io.OutputStream out)
Write the contents of this remote file to an output stream. |
void |
cleanup()
Cleanup this remote file. |
void |
copyTo(java.io.File destFile)
Copy remotefile to local disk storage. |
java.lang.String |
getChecksum()
Returns a MD5 Checksum on the file. |
java.io.InputStream |
getInputStream()
Get an inputstream that contains the data transferred in this RemoteFile. |
java.lang.String |
getName()
Return the file name. |
long |
getSize()
Returns the total size of the remote file. |
Method Detail |
---|
void copyTo(java.io.File destFile)
destFile
- local File
IOFailure
- on communication trouble.
ArgumentNotValid
- on null parameter or non-writable filevoid appendTo(java.io.OutputStream out)
out
- OutputStream that the data will be written to. This stream
will not be closed by this operation.
IOFailure
- If append operation fails
ArgumentNotValid
- on null parameterjava.io.InputStream getInputStream()
IOFailure
- on communication trouble.java.lang.String getName()
java.lang.String getChecksum()
void cleanup()
long getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |