Skip navigation links
oracle.stellent.ridc.model
Class TransferFile
java.lang.Object
oracle.stellent.ridc.model.TransferFile
-
public class TransferFile
- extends Object
Abstracts a stream transferred between the Content Server and the client.
TransferFile
public TransferFile()
TransferFile
public TransferFile(InputStream inputStream,
String fileName,
long contentLength,
String contentType)
TransferFile
public TransferFile(InputStream inputStream,
String fileName,
long contentLength)
TransferFile
public TransferFile(File file)
throws IOException
-
- Throws:
IOException
TransferFile
public TransferFile(File file,
String contentType)
throws IOException
-
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
-
- Returns:
- the contained inputstream
- Throws:
IOException
setInputStream
public void setInputStream(InputStream inputStream)
getContentType
public String getContentType()
-
- Returns:
- the content mime-type
setContentType
public void setContentType(String contentType)
getContentLength
public long getContentLength()
-
- Returns:
- the content length or -1 if not known
setContentLength
public void setContentLength(long contentLength)
getFileName
public String getFileName()
-
- Returns:
- the original file name this stream represents
setFileName
public void setFileName(String fileName)
toString
public String toString()
-
- Overrides:
toString
in class Object
Skip navigation links
Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.