Class TLcyCompositeInputStreamFactory

java.lang.Object
com.luciad.lucy.util.TLcyGenericComposite<ILcdInputStreamFactory>
com.luciad.lucy.io.TLcyCompositeInputStreamFactory
All Implemented Interfaces:
ILcdInputStreamFactory, Iterable<ILcdInputStreamFactory>

public class TLcyCompositeInputStreamFactory extends TLcyGenericComposite<ILcdInputStreamFactory> implements ILcdInputStreamFactory

Composite implementation (see composite design pattern) of ILcdInputStreamFactory.

You can use the TLcyCompositeInputStreamFactory in two ways:

  1. With ILcyLucyEnv:
    • When asked to create an inputstream, it loops over the ILcdInputStreamFactory services registered in the Lucy back-end until one succeeds.
    • Adding and removing TLcyCompositeInputStreamFactorys will add and remove the factory as a service in the Lucy back-end.
  2. Without ILcyLucyEnv:
    • When asked to create an inputstream, it loops over the ILcdInputStreamFactory registered in this instance until one succeeds.
    • Adding and removing TLcyCompositeInputStreamFactorys will only be performed on this instance.

You can also loop over the underlying ILcdInputStreamFactorys yourself using the standard iterator.

Since:
10.1
See Also:
  • Constructor Details

    • TLcyCompositeInputStreamFactory

      public TLcyCompositeInputStreamFactory()
      Create a new empty composite factory that will act on factories registered in this instance only.
    • TLcyCompositeInputStreamFactory

      public TLcyCompositeInputStreamFactory(ILcyLucyEnv aLucyEnv)
      Create a composite factory that will act on the factories registered in the Lucy back-end.
      Parameters:
      aLucyEnv - The Lucy back-end
  • Method Details