ilog.cpl.storage
Class IlpDefaultStorageAdapter

java.lang.Object
  extended by ilog.cpl.storage.IlpDefaultStorageAdapter
All Implemented Interfaces:
IlpStorageAdapter

public class IlpDefaultStorageAdapter
extends Object
implements IlpStorageAdapter

Default implementation of access to the physical presentation data storage.

Since:
JTGO 3.0

Constructor Summary
IlpDefaultStorageAdapter(File source)
          Constructs an IlpDefaultStorageAdapter based on files.
IlpDefaultStorageAdapter(File inputSource, File outputDestination)
          Constructs an IlpDefaultStorageAdapter based on files.
IlpDefaultStorageAdapter(InputStream inputSource, OutputStream outputDestination)
          Constructs an IlpDefaultStorageAdapter based on streams.
IlpDefaultStorageAdapter(Reader inputSource, Writer outputDestination)
          Constructs an IlpDefaultStorageAdapter based on reader/writer.
IlpDefaultStorageAdapter(URL source)
          Constructs an IlpDefaultStorageAdapter based on URLs.
IlpDefaultStorageAdapter(URL inputSource, URL outputDestination)
          Constructs an IlpDefaultStorageAdapter based on URLs.
 
Method Summary
 Object getInputSource(Locale locale)
          Gets the source for retrieving storage data for XML-formatted presentation data.
 Object getOutputDestination(Locale locale)
          Get the destination for storing storage data for XML-formatted presentation data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpDefaultStorageAdapter

public IlpDefaultStorageAdapter(URL inputSource,
                                URL outputDestination)
Constructs an IlpDefaultStorageAdapter based on URLs.

Parameters:
inputSource - Name of input XML source.
outputDestination - Name of output XML destination.

IlpDefaultStorageAdapter

public IlpDefaultStorageAdapter(URL source)
Constructs an IlpDefaultStorageAdapter based on URLs.

Parameters:
source - Name of input XML source. This URL is also used for output.

IlpDefaultStorageAdapter

public IlpDefaultStorageAdapter(File inputSource,
                                File outputDestination)
Constructs an IlpDefaultStorageAdapter based on files.

Parameters:
inputSource - Name of input XML source.
outputDestination - Name of output XML destination.

IlpDefaultStorageAdapter

public IlpDefaultStorageAdapter(File source)
Constructs an IlpDefaultStorageAdapter based on files.

Parameters:
source - Name of input XML source. This file is also used for output.

IlpDefaultStorageAdapter

public IlpDefaultStorageAdapter(InputStream inputSource,
                                OutputStream outputDestination)
Constructs an IlpDefaultStorageAdapter based on streams.

Parameters:
inputSource - Name of input XML source.
outputDestination - Name of output XML destination.

IlpDefaultStorageAdapter

public IlpDefaultStorageAdapter(Reader inputSource,
                                Writer outputDestination)
Constructs an IlpDefaultStorageAdapter based on reader/writer.

Parameters:
inputSource - Name of input XML source.
outputDestination - Name of output XML destination.
Method Detail

getInputSource

public Object getInputSource(Locale locale)
Gets the source for retrieving storage data for XML-formatted presentation data.

Specified by:
getInputSource in interface IlpStorageAdapter
Parameters:
locale - Locale of the presentation data set.
Returns:
The input source for XML-formatted data.

getOutputDestination

public Object getOutputDestination(Locale locale)
                            throws IlpReadOnlyStorageAdapterException
Get the destination for storing storage data for XML-formatted presentation data.

Specified by:
getOutputDestination in interface IlpStorageAdapter
Parameters:
locale - Locale of the presentation data set.
Returns:
The output destination for XML-formatted data.
Throws:
IlpReadOnlyStorageAdapterException - if there is no destination.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.