Package gda.data.nexus
Class NexusFileFactory
java.lang.Object
gda.data.nexus.NexusFileFactory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NexusFilecreateFile(String fileUrl, boolean instrumentFileApi) static NexusFilecreateFile(String fileUrl, boolean instrumentFileApi, boolean swmrEnabled) Create a Nexus file.static NexusFileopenFileToRead(String fileUrl)
-
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
- Throws:
NexusException
-
createFile
- Throws:
Exception
-