code: public <T> T[] readSpecOrImage(final Class<T> type) throws DevFailed {
          update();
          return extractSpecOrImage(type);
      }
docs: Read attribute with format SPECTRUM or IMAGE
  
  @param <T>
  @param type
  @return
  @throws DevFailed