Copyright @ 2002 SAP. All Rights Reserved.

com.sap.tc.complib.provider
Interface DCInputProvider

All Known Implementing Classes:
FileInputProvider

public interface DCInputProvider

This interface represents a generic provider for input streams used to unmarshal development components.


Method Summary
 PPInputProvider getPPInputProvider(java.lang.String publicPartName)
          Returns an input provider for the public parts of the given DC.
 java.lang.String[] getPublicParts()
          Returns a list of the public parts of the given DC.
 java.io.InputStream getStreamForDC()
          Provides an input stream for the selected development component
 void releaseStream(java.io.InputStream stream)
          Releases the given input stream.
 

Method Detail

getStreamForDC

public java.io.InputStream getStreamForDC()
                                   throws ProviderException
Provides an input stream for the selected development component
Returns:
a stream providing the component's description file.
Throws:
ProviderException - if the component does not exist or is invalid, or the description file could not be found.

releaseStream

public void releaseStream(java.io.InputStream stream)
Releases the given input stream.
Parameters:
stream - the stream to release.

getPublicParts

public java.lang.String[] getPublicParts()
                                  throws ProviderException
Returns a list of the public parts of the given DC.
Returns:
a list of public part names

getPPInputProvider

public PPInputProvider getPPInputProvider(java.lang.String publicPartName)
                                   throws ProviderException
Returns an input provider for the public parts of the given DC.
Parameters:
publicPartName - the name of a public part.
Returns:
an input provider for the public part's description file.
Throws:
ProviderException - if the public part does not exist or is invalid, or the description file could not be found.

Copyright @ 2002 SAP. All Rights Reserved.