|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.project.view.FileUploader
Title: $FileName: FileUploader.java$
Field Summary | |
private long |
fileUploadID
|
private java.io.FileOutputStream |
stream
|
private boolean |
streamClosed
|
private java.io.File |
tempFile
|
Constructor Summary | |
FileUploader()
Construct a new FileUploader. |
Method Summary | |
private void |
closeStream()
Flushes and closes the output stream. |
protected void |
finalize()
|
long |
getFileUploadID()
Returns the unique file upload ID. |
private void |
makeStreamIfNeeded()
Creates the output stream if it has not already been created. |
long |
uploadBytes(org.sourcejammer.util.SendBytes by)
Streams bytes into the FileUploader. |
long |
uploadFile(org.sourcejammer.util.SendBytes by)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private long fileUploadID
private java.io.File tempFile
private java.io.FileOutputStream stream
private boolean streamClosed
Constructor Detail |
public FileUploader() throws FileSendException
FileUploadException
- if object has trouble writing to server's file system.
FileSendException
Method Detail |
public long getFileUploadID()
getFileUploadID
in interface Uploader
public long uploadFile(org.sourcejammer.util.SendBytes by) throws FileSendException
FileSendException
public long uploadBytes(org.sourcejammer.util.SendBytes by) throws FileSendException
uploadBytes
in interface Uploader
by
- -- SendBytes object wrapped around bytes..
FileSendException
private void closeStream() throws java.io.IOException
java.io.IOException
private void makeStreamIfNeeded() throws StreamClosedException, java.io.FileNotFoundException
StreamClosedException
java.io.FileNotFoundException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Object.finalize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |