org.silverpeas.upload
Class UploadSessionFile

java.lang.Object
  extended by org.silverpeas.upload.UploadSessionFile

public class UploadSessionFile
extends Object

This class represents a file which will be uploaded, or, has been uploaded, on the server.

Author:
Yohann Chastagnier

Method Summary
 String getFullPath()
           
 File getServerFile()
          Loads the data to access the file on server if it has not been done, noting is performed otherwise.
 UploadSession getUploadSession()
           
 void write(InputStream uploadedInputStream)
          Writes the given input stream into the physical file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUploadSession

public UploadSession getUploadSession()

getFullPath

public String getFullPath()

getServerFile

public File getServerFile()
Loads the data to access the file on server if it has not been done, noting is performed otherwise.

Returns:
the file on the server.
Throws:
Exception

write

public void write(InputStream uploadedInputStream)
           throws IOException
Writes the given input stream into the physical file.
Closes the input stream at the end.

Parameters:
uploadedInputStream -
Throws:
IOException


Copyright © 2016 Silverpeas. All Rights Reserved.