Class BasicInputThreadLocal

java.lang.Object
java.lang.ThreadLocal<BasicInput>
uk.ac.starlink.fits.BasicInputThreadLocal
All Implemented Interfaces:
Closeable, AutoCloseable

public class BasicInputThreadLocal extends ThreadLocal<BasicInput> implements Closeable
ThreadLocal based on an InputFactory. This can dispense a BasicInput object private to the current thread. The close method will close all the BasicInput objects that this has created so far.
Since:
30 Jun 2017
Author:
Mark Taylor
  • Constructor Details

    • BasicInputThreadLocal

      public BasicInputThreadLocal(InputFactory inputFact, boolean isSeq)
      Constructor.
      Parameters:
      inputFact - factory for BasicInput objects
      isSeq - true if created inputs are sequential, false for random
  • Method Details