Class NexusFileFactory

java.lang.Object
gda.data.nexus.NexusFileFactory

public class NexusFileFactory extends Object

Title: Factory class for Nexus files.

Description: Factory class for NeXus files. NeXus files of different types can be created (new, read_only and read-write). The NeXus file itself is configured according to NexusFileConfig. This class constructs Nexus files ready for use elsewhere in the GDA.

  • Constructor Details

    • NexusFileFactory

      public NexusFileFactory()
  • Method Details

    • createFile

      public static NexusFile createFile(String fileUrl, boolean instrumentFileApi, boolean swmrEnabled) throws Exception
      Create a Nexus file.
      Parameters:
      fileUrl - String The full filename of the file to create.
      instrumentFileApi - - if true the nexus api is instrumented
      Returns:
      NexusFile
      Throws:
      Exception
    • openFileToRead

      public static NexusFile openFileToRead(String fileUrl) throws NexusException
      Throws:
      NexusException
    • createFile

      public static NexusFile createFile(String fileUrl, boolean instrumentFileApi) throws Exception
      Throws:
      Exception