org.jvending.provisioning.stocking
Interface DataSink


public interface DataSink

Provides a service for stocking PAR files into the bundle repository. An implementation of this interface will be the final sink, after 0 or more filters are applied, for the PAR file. The DataSink is determined within the stocking-handlers.xml file.

Since:
1.3a
Author:
Shane Isbell

Method Summary
 long addParFile(java.io.InputStream inputStream)
          Stocks a PAR file within the bundle repository.
 java.lang.String getDataSinkName()
          Accessor for the DataSink name.
 void init(StockingHandlerConfig config)
          Initializes the DataSink
 

Method Detail

addParFile

long addParFile(java.io.InputStream inputStream)
                throws java.io.IOException
Stocks a PAR file within the bundle repository.

Parameters:
inputStream - PAR file
Returns:
par file id
Throws:
java.io.IOException

init

void init(StockingHandlerConfig config)
Initializes the DataSink

Parameters:
config -

getDataSinkName

java.lang.String getDataSinkName()
Accessor for the DataSink name.

Returns:
datasink name


Copyright 2006 null. All Rights Reserved.