Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.model
Class TransferFile

java.lang.Object
  extended by oracle.stellent.ridc.model.TransferFile


public class TransferFile
extends Object

Abstracts a stream transferred between the Content Server and the client.


Constructor Summary
TransferFile()
           
TransferFile(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
 long getContentLength()
           
 String getContentType()
           
 String getFileName()
           
 InputStream getInputStream()
           
 void setContentLength(long contentLength)
           
 void setContentType(String contentType)
           
 void setFileName(String fileName)
           
 void setInputStream(InputStream inputStream)
           
 String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

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

Method Detail

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

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.