Package oracle.stellent.ridc.model
Class TransferFile
java.lang.Object
oracle.stellent.ridc.model.TransferFile
Abstracts a stream transferred between the Content Server and the client.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceclass -
Constructor Summary
ConstructorsConstructorDescriptionTransferFile(File file) TransferFile(File file, String contentType) TransferFile(InputStream inputStream, String fileName, long contentLength) TransferFile(InputStream inputStream, String fileName, long contentLength, String contentType) -
Method Summary
Modifier and TypeMethodDescriptionlongvoidnotifyBufferWrite(long bytes) voidsetContentLength(long contentLength) voidsetContentType(String contentType) voidsetFileName(String fileName) voidsetInputStream(InputStream inputStream) voidImplementations of this TransferListener interface must be thread-safetoString()
-
Constructor Details
-
TransferFile
public TransferFile() -
TransferFile
public TransferFile(InputStream inputStream, String fileName, long contentLength, String contentType) -
TransferFile
-
TransferFile
- Throws:
IOException
-
TransferFile
- Throws:
IOException
-
-
Method Details
-
getInputStream
- Returns:
- the contained inputstream
- Throws:
IOException
-
setInputStream
-
getContentType
- Returns:
- the content mime-type
-
setContentType
-
getContentLength
public long getContentLength()- Returns:
- the content length or -1 if not known
-
setContentLength
public void setContentLength(long contentLength) -
getFileName
- Returns:
- the original file name this stream represents
-
setFileName
-
toString
-
notifyBufferWrite
public void notifyBufferWrite(long bytes) -
getTransferListener
-
setTransferListener
Implementations of this TransferListener interface must be thread-safe
-