 # Parses all header-dataunits, initializes Header instances
 # and appropriate dataunit instances.
 class File
-  @LINEWIDTH   = 80
-  @BLOCKLENGTH = 2880
+  LINEWIDTH: 80
+  BLOCKLENGTH: 2880
   
   constructor: (buffer) ->
     @offset     = 0

      break if @eof
  
  # ##Class Methods

  # Determine the number of characters following a header or data unit
  @excessBytes: (length) ->
    return (File.BLOCKLENGTH - (length % File.BLOCKLENGTH)) % File.BLOCKLENGTH

  @extendDataView: (view) ->
    

        DU = Image
    data = new DU(header, @view, @offset)
    
    excess = @excessBytes(data.length)
    
    # Forward to the next HDU
    @offset += data.length + excess
