com.sapportals.portal.prt.registry.content

Class StreamSource

java.lang.Object
  extended by com.sapportals.portal.prt.registry.content.StreamSource
All Implemented Interfaces:
IStreamSource

public class StreamSource
extends Object
implements IStreamSource

StreamSource helper class


Field Summary
protected  byte[] mm_bytes
           
protected  File mm_file
           
protected  Properties mm_properties
           
 
Constructor Summary
StreamSource(byte[] bytes)
          Constructs a StreamSource from an inputStream
StreamSource(File file)
          Constructs a StreamSource from a java.io.File object
StreamSource(Properties properties)
          Constructs a StreamSource from a java.util.Properties object
 
Method Summary
 boolean containsProperties()
           
 InputStream getInputStream()
          Gets an input stream to the content
 Properties getProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mm_properties

protected Properties mm_properties

mm_file

protected File mm_file

mm_bytes

protected byte[] mm_bytes
Constructor Detail

StreamSource

public StreamSource(Properties properties)
Constructs a StreamSource from a java.util.Properties object


StreamSource

public StreamSource(File file)
Constructs a StreamSource from a java.io.File object


StreamSource

public StreamSource(byte[] bytes)
Constructs a StreamSource from an inputStream

Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Gets an input stream to the content

Specified by:
getInputStream in interface IStreamSource
Returns:
an inputStream to the content
Throws:
IOException

containsProperties

public boolean containsProperties()

getProperties

public Properties getProperties()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice