Class ExtendedData

java.lang.Object
com.xinapse.multisliceimage.analyze.ExtendedData
Direct Known Subclasses:
AFNIExtendedData, CommentExtendedData, DICOMExtendedData, InfoExtendedData, UnknownExtendedData, XCEDEExtendedData, XMLExtendedData

abstract class ExtendedData extends Object
This abstract class handles the NIFTI 1.1 extended data.
The class contains a static method to create an arbitary block of NIFTI extended data from a byte[].
  • Method Details

    • newInstance

      public static ExtendedData newInstance(byte[] bArray, int eCode) throws IOException
      Creates a new block of NIFTI extended data.
      Parameters:
      bArray - the data that encapsulates the extended data.
      eCode - the ecode for the extended data.
      Returns:
      a new block of NIFTI extended data.
      Throws:
      IOException - if the length of the byte[] is not a multiple of 16.
    • toString

      public String toString()
      Overrides:
      toString in class Object