Interface StructureIOFile

    • Method Detail

      • addExtension

        void addExtension​(java.lang.String ext)
        Associates a file extension with this particular StructureIOFile, indicating that files of that type can be parsed. This is generally called only in the constructor of the implementing class.
        Parameters:
        ext - a String ...
      • getExtensions

        java.util.List<java.lang.String> getExtensions()
        Returns a list of extensions supported by this class
        Returns:
        a (potentially empty) list of strings
      • getStructure

        Structure getStructure​(java.lang.String filename)
                        throws java.io.IOException
        Open filename and return a Structure object. Not to be confused with StructureProvider.getStructureById(String)
        Parameters:
        filename - The path to the file. Must be the correct format for the implementing class.
        Returns:
        a Structure object
        Throws:
        java.io.IOException - ...
      • getStructure

        Structure getStructure​(java.io.File file)
                        throws java.io.IOException
        Read file from File and returns a Structure object.
        Parameters:
        file - file containing the structure. Must be the correct format for the implementing class
        Returns:
        a Structure object
        Throws:
        java.io.IOException - ...