This class comprises static utility functions used throughout the FITS classes.


The following tables list the members exposed by FitsUtil.

Public Constructors

  Name Description
Public method FitsUtil Initializes a new instance of the FitsUtil class.
Top

Public Methods

  Name Description
Public method Static AddPadding Total size of blocked FITS element
Public method Static ByteArrayToStrings Convert bytes to Strings
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method Static FindOffset Find out where we are in a random access file
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method Static GetURLStream Get a stream to a URL accommodating possible redirections. Note that if a redirection request points to a different protocol than the original request, then the redirection is not handled automatically.
Public method Static IsCompressed Check if a file seems to be compressed.
Public method Static MaxLength Get the maximum length of a String in a String array.
Public method Static Padding Overloaded. How many bytes are needed to fill the last 2880 block?
Public method Static Reposition Reposition a random access stream to a requested offset
Public method Static StringsToByteArray Copy an array of Strings to bytes.
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also