com.pega.pegarules.pub.util
Class PRFileDataSource

java.lang.Object
  extended by com.pega.pegarules.pub.util.PRFileDataSource
All Implemented Interfaces:
javax.activation.DataSource

public class PRFileDataSource
extends java.lang.Object
implements javax.activation.DataSource

Implementation of javax.activation.DataSource for PRFile streams.

Version:
$Revision: 2 $
Author:
dassu

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Constructor Summary
PRFileDataSource(java.lang.String aContentType, PRFile aSource)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Constructor Detail

PRFileDataSource

public PRFileDataSource(java.lang.String aContentType,
                        PRFile aSource)
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.activation.DataSource

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface javax.activation.DataSource
Throws:
java.io.IOException

getName

public java.lang.String getName()
Specified by:
getName in interface javax.activation.DataSource

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in interface javax.activation.DataSource
Throws:
java.io.IOException


Copyright © 2012 Pegasystems Inc. All Rights Reserved.